zasamen

configtx.yaml

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