Advertisement
Guest User

Untitled

a guest
May 7th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 8.62 KB | None | 0 0
  1. # Copyright IBM Corp. All Rights Reserved.
  2. #
  3. # SPDX-License-Identifier: Apache-2.0
  4. #
  5.  
  6. ---
  7. ################################################################################
  8. #
  9. #   Section: Organizations
  10. #
  11. #   - This section defines the different organizational identities which will
  12. #   be referenced later in the configuration.
  13. #
  14. ################################################################################
  15. Organizations:
  16.     # SampleOrg defines an MSP using the sampleconfig.  It should never be used
  17.     # in production but may be used as a template for other definitions
  18.     - &OrdererOrg
  19.         # DefaultOrg defines the organization which is used in the sampleconfig
  20.         # of the fabric.git development environment
  21.         Name: OrdererOrg
  22.  
  23.         # ID to load the MSP definition as
  24.         ID: OrdererMSP
  25.  
  26.         # MSPDir is the filesystem path which contains the MSP configuration
  27.         MSPDir: crypto-config/ordererOrganizations/example.com/msp
  28.  
  29.     - &Org1
  30.         # DefaultOrg defines the organization which is used in the sampleconfig
  31.         # of the fabric.git development environment
  32.         Name: Org1MSP
  33.  
  34.         # ID to load the MSP definition as
  35.         ID: Org1MSP
  36.  
  37.         MSPDir: crypto-config/peerOrganizations/org1.example.com/msp
  38.  
  39.         AnchorPeers:
  40.            # AnchorPeers defines the location of peers which can be used
  41.             # for cross org gossip communication.  Note, this value is only
  42.             # encoded in the genesis block in the Application section context
  43.             - Host: peer0.org1.example.com
  44.               Port: 7051
  45.  
  46.     - &Org2
  47.         # DefaultOrg defines the organization which is used in the sampleconfig
  48.         # of the fabric.git development environment
  49.         Name: Org2MSP
  50.  
  51.         # ID to load the MSP definition as
  52.         ID: Org2MSP
  53.  
  54.         MSPDir: crypto-config/peerOrganizations/org2.example.com/msp
  55.  
  56.         AnchorPeers:
  57.            # AnchorPeers defines the location of peers which can be used
  58.             # for cross org gossip communication.  Note, this value is only
  59.             # encoded in the genesis block in the Application section context
  60.             - Host: peer0.org2.example.com
  61.               Port: 7051
  62.    
  63.     - &Org3
  64.         # DefaultOrg defines the organization which is used in the sampleconfig
  65.         # of the fabric.git development environment
  66.         Name: Org3MSP
  67.  
  68.         # ID to load the MSP definition as
  69.         ID: Org3MSP
  70.  
  71.         MSPDir: crypto-config/peerOrganizations/org3.example.com/msp
  72.  
  73.         AnchorPeers:
  74.            # AnchorPeers defines the location of peers which can be used
  75.             # for cross org gossip communication.  Note, this value is only
  76.             # encoded in the genesis block in the Application section context
  77.             - Host: peer0.org3.example.com
  78.               Port: 7051
  79.  
  80. ################################################################################
  81. #
  82. #   SECTION: Capabilities
  83. #
  84. #   - This section defines the capabilities of fabric network. This is a new
  85. #   concept as of v1.1.0 and should not be utilized in mixed networks with
  86. #   v1.0.x peers and orderers.  Capabilities define features which must be
  87. #   present in a fabric binary for that binary to safely participate in the
  88. #   fabric network.  For instance, if a new MSP type is added, newer binaries
  89. #   might recognize and validate the signatures from this type, while older
  90. #   binaries without this support would be unable to validate those
  91. #   transactions.  This could lead to different versions of the fabric binaries
  92. #   having different world states.  Instead, defining a capability for a channel
  93. #   informs those binaries without this capability that they must cease
  94. #   processing transactions until they have been upgraded.  For v1.0.x if any
  95. #   capabilities are defined (including a map with all capabilities turned off)
  96. #   then the v1.0.x peer will deliberately crash.
  97. #
  98. ################################################################################
  99. Capabilities:
  100.    # Channel capabilities apply to both the orderers and the peers and must be
  101.     # supported by both.  Set the value of the capability to true to require it.
  102.     Global: &ChannelCapabilities
  103.         # V1.1 for Global is a catchall flag for behavior which has been
  104.         # determined to be desired for all orderers and peers running v1.0.x,
  105.         # but the modification of which would cause incompatibilities.  Users
  106.         # should leave this flag set to true.
  107.         V1_1: true
  108.  
  109.     # Orderer capabilities apply only to the orderers, and may be safely
  110.     # manipulated without concern for upgrading peers.  Set the value of the
  111.     # capability to true to require it.
  112.     Orderer: &OrdererCapabilities
  113.         # V1.1 for Order is a catchall flag for behavior which has been
  114.         # determined to be desired for all orderers running v1.0.x, but the
  115.         # modification of which  would cause incompatibilities.  Users should
  116.         # leave this flag set to true.
  117.         V1_1: true
  118.  
  119.     # Application capabilities apply only to the peer network, and may be safely
  120.     # manipulated without concern for upgrading orderers.  Set the value of the
  121.     # capability to true to require it.
  122.     Application: &ApplicationCapabilities
  123.         # V1.2 for Application is a catchall flag for behavior which has been
  124.         # determined to be desired for all peers running v1.0.x, but the
  125.         # modification of which would cause incompatibilities.  Users should
  126.         # leave this flag set to true.
  127.         V1_2: true
  128.  
  129. ################################################################################
  130. #
  131. #   SECTION: Application
  132. #
  133. #   - This section defines the values to encode into a config transaction or
  134. #   genesis block for application related parameters
  135. #
  136. ################################################################################
  137. Application: &ApplicationDefaults
  138.  
  139.     # Organizations is the list of orgs which are defined as participants on
  140.     # the application side of the network
  141.     Organizations:
  142. ################################################################################
  143. #
  144. #   SECTION: Orderer
  145. #
  146. #   - This section defines the values to encode into a config transaction or
  147. #   genesis block for orderer related parameters
  148. #
  149. ################################################################################
  150. Orderer: &OrdererDefaults
  151.  
  152.     # Orderer Type: The orderer implementation to start
  153.     # Available types are "solo" and "kafka"
  154.     OrdererType: solo
  155.  
  156.     Addresses:
  157.        - orderer.example.com:7050
  158.  
  159.     # Batch Timeout: The amount of time to wait before creating a batch
  160.     BatchTimeout: 2s
  161.  
  162.     # Batch Size: Controls the number of messages batched into a block
  163.     BatchSize:
  164.         # Max Message Count: The maximum number of messages to permit in a batch
  165.         MaxMessageCount: 10
  166.  
  167.         # Absolute Max Bytes: The absolute maximum number of bytes allowed for
  168.         # the serialized messages in a batch.
  169.         AbsoluteMaxBytes: 99 MB
  170.  
  171.         # Preferred Max Bytes: The preferred maximum number of bytes allowed for
  172.         # the serialized messages in a batch. A message larger than the preferred
  173.         # max bytes will result in a batch larger than preferred max bytes.
  174.         PreferredMaxBytes: 512 KB
  175.  
  176.     Kafka:
  177.        # Brokers: A list of Kafka brokers to which the orderer connects
  178.         # NOTE: Use IP:port notation
  179.         Brokers:
  180.            - 127.0.0.1:9092
  181.  
  182.     # Organizations is the list of orgs which are defined as participants on
  183.     # the orderer side of the network
  184.     Organizations:
  185. ################################################################################
  186. #
  187. #   Profile
  188. #
  189. #   - Different configuration profiles may be encoded here to be specified
  190. #   as parameters to the configtxgen tool
  191. #
  192. ################################################################################
  193. Profiles:
  194.     StockchainzOrdererGenesis:
  195.         Capabilities:
  196.             <<: *ChannelCapabilities
  197.         Orderer:
  198.             <<: *OrdererDefaults
  199.             Organizations:
  200.                - *OrdererOrg
  201.             Capabilities:
  202.                 <<: *OrdererCapabilities
  203.         Consortiums:
  204.             StockchainzConsortium:
  205.                 Organizations:
  206.                    - *Org1
  207.                     - *Org2
  208.                     - *Org3
  209.     StockchainzChannel:
  210.         Consortium: StockchainzConsortium
  211.         Application:
  212.             <<: *ApplicationDefaults
  213.             Organizations:
  214.                - *Org1
  215.                 - *Org2
  216.                 - *Org3
  217.             Capabilities:
  218.                 <<: *ApplicationCapabilities
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement