github.com/inklabsfoundation/inkchain@v0.17.1-0.20181025012015-c3cef8062f19/examples/cli_test/channel/configtx.yaml (about)

     1  # Copyright IBM Corp. All Rights Reserved.
     2  #
     3  # SPDX-License-Identifier: Apache-2.0
     4  #
     5  
     6  ---
     7  ################################################################################
     8  #
     9  #   Profile
    10  #
    11  #   - Different configuration profiles may be encoded here to be specified
    12  #   as parameters to the configtxgen tool
    13  #
    14  ################################################################################
    15  Profiles:
    16  
    17      TwoOrgsOrdererGenesis:
    18          Orderer:
    19              <<: *OrdererDefaults
    20              Organizations:
    21                  - *OrdererOrg
    22          Consortiums:
    23              SampleConsortium:
    24                  Organizations:
    25                      - *Org1
    26                      - *Org2
    27      TwoOrgsChannel:
    28          Consortium: SampleConsortium
    29          Application:
    30              <<: *ApplicationDefaults
    31              Organizations:
    32                  - *Org1
    33                  - *Org2
    34  
    35  ################################################################################
    36  #
    37  #   Section: Organizations
    38  #
    39  #   - This section defines the different organizational identities which will
    40  #   be referenced later in the configuration.
    41  #
    42  ################################################################################
    43  Organizations:
    44  
    45      # SampleOrg defines an MSP using the sampleconfig.  It should never be used
    46      # in production but may be used as a template for other definitions
    47      - &OrdererOrg
    48          # DefaultOrg defines the organization which is used in the sampleconfig
    49          # of the inkchain.git development environment
    50          Name: OrdererMSP
    51  
    52          # ID to load the MSP definition as
    53          ID: OrdererMSP
    54  
    55          # MSPDir is the filesystem path which contains the MSP configuration
    56          MSPDir: crypto-config/ordererOrganizations/example.com/msp
    57  
    58      - &Org1
    59          # DefaultOrg defines the organization which is used in the sampleconfig
    60          # of the inkchain.git development environment
    61          Name: Org1MSP
    62  
    63          # ID to load the MSP definition as
    64          ID: Org1MSP
    65  
    66          MSPDir: crypto-config/peerOrganizations/org1.example.com/msp
    67  
    68          AnchorPeers:
    69              # AnchorPeers defines the location of peers which can be used
    70              # for cross org gossip communication.  Note, this value is only
    71              # encoded in the genesis block in the Application section context
    72              - Host: peer0.org1.example.com
    73                Port: 7051
    74  
    75      - &Org2
    76          # DefaultOrg defines the organization which is used in the sampleconfig
    77          # of the inkchain.git development environment
    78          Name: Org2MSP
    79  
    80          # ID to load the MSP definition as
    81          ID: Org2MSP
    82  
    83          MSPDir: crypto-config/peerOrganizations/org2.example.com/msp
    84  
    85          AnchorPeers:
    86              # AnchorPeers defines the location of peers which can be used
    87              # for cross org gossip communication.  Note, this value is only
    88              # encoded in the genesis block in the Application section context
    89              - Host: peer0.org2.example.com
    90                Port: 7051
    91  
    92  ################################################################################
    93  #
    94  #   SECTION: Orderer
    95  #
    96  #   - This section defines the values to encode into a config transaction or
    97  #   genesis block for orderer related parameters
    98  #
    99  ################################################################################
   100  Orderer: &OrdererDefaults
   101  
   102      # Orderer Type: The orderer implementation to start
   103      # Available types are "solo" and "kafka"
   104      OrdererType: solo
   105  
   106      Addresses:
   107          - orderer.example.com:7050
   108  
   109      # Batch Timeout: The amount of time to wait before creating a batch
   110      BatchTimeout: 2s
   111  
   112      # Batch Size: Controls the number of messages batched into a block
   113      BatchSize:
   114  
   115          # Max Message Count: The maximum number of messages to permit in a batch
   116          MaxMessageCount: 10
   117  
   118          # Absolute Max Bytes: The absolute maximum number of bytes allowed for
   119          # the serialized messages in a batch.
   120          AbsoluteMaxBytes: 98 MB
   121  
   122          # Preferred Max Bytes: The preferred maximum number of bytes allowed for
   123          # the serialized messages in a batch. A message larger than the preferred
   124          # max bytes will result in a batch larger than preferred max bytes.
   125          PreferredMaxBytes: 512 KB
   126  
   127      Kafka:
   128          # Brokers: A list of Kafka brokers to which the orderer connects
   129          # NOTE: Use IP:port notation
   130          Brokers:
   131              - 127.0.0.1:9092
   132  
   133      # Organizations is the list of orgs which are defined as participants on
   134      # the orderer side of the network
   135      Organizations:
   136  
   137  ################################################################################
   138  #
   139  #   SECTION: Application
   140  #
   141  #   - This section defines the values to encode into a config transaction or
   142  #   genesis block for application related parameters
   143  #
   144  ################################################################################
   145  Application: &ApplicationDefaults
   146  
   147      # Organizations is the list of orgs which are defined as participants on
   148      # the application side of the network
   149      Organizations: