configtx.yaml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. ---
  2. ################################################################################
  3. #
  4. # Profile
  5. #
  6. # - Different configuration profiles may be encoded here to be specified
  7. # as parameters to the configtxgen tool
  8. #
  9. ################################################################################
  10. Profiles:
  11. TwoOrgs:
  12. Orderer:
  13. <<: *OrdererDefaults
  14. Organizations:
  15. - *OrdererOrg
  16. Application:
  17. <<: *ApplicationDefaults
  18. Organizations:
  19. - *Org0
  20. - *Org1
  21. ################################################################################
  22. #
  23. # Section: Organizations
  24. #
  25. # - This section defines the different organizational identities which will
  26. # be referenced later in the configuration.
  27. #
  28. ################################################################################
  29. Organizations:
  30. # SampleOrg defines an MSP using the sampleconfig. It should never be used
  31. # in production but may be used as a template for other definitions
  32. - &OrdererOrg
  33. # DefaultOrg defines the organization which is used in the sampleconfig
  34. # of the fabric.git development environment
  35. Name: OrdererOrg
  36. # ID to load the MSP definition as
  37. ID: OrdererMSP
  38. # MSPDir is the filesystem path which contains the MSP configuration
  39. MSPDir: examples/e2e_cli/crypto/orderer/localMspConfig
  40. # BCCSP (Blockchain crypto provider): Select which crypto implementation or
  41. # library to use
  42. BCCSP:
  43. Default: SW
  44. SW:
  45. Hash: SHA2
  46. Security: 256
  47. # Location of Key Store. If this is unset, a location will
  48. # be chosen using 'MSPDir'/keystore
  49. FileKeyStore:
  50. KeyStore:
  51. - &Org0
  52. # DefaultOrg defines the organization which is used in the sampleconfig
  53. # of the fabric.git development environment
  54. Name: Org0MSP
  55. # ID to load the MSP definition as
  56. ID: Org0MSP
  57. MSPDir: examples/e2e_cli/crypto/peer/peer0/localMspConfig
  58. # BCCSP (Blockchain crypto provider): Select which crypto implementation or
  59. # library to use
  60. BCCSP:
  61. Default: SW
  62. SW:
  63. Hash: SHA2
  64. Security: 256
  65. # Location of Key Store. If this is unset, a location will
  66. # be chosen using 'MSPDir'/keystore
  67. FileKeyStore:
  68. KeyStore:
  69. AnchorPeers:
  70. # AnchorPeers defines the location of peers which can be used
  71. # for cross org gossip communication. Note, this value is only
  72. # encoded in the genesis block in the Application section context
  73. - Host: peer0
  74. Port: 7051
  75. - &Org1
  76. # DefaultOrg defines the organization which is used in the sampleconfig
  77. # of the fabric.git development environment
  78. Name: Org1MSP
  79. # ID to load the MSP definition as
  80. ID: Org1MSP
  81. MSPDir: examples/e2e_cli/crypto/peer/peer2/localMspConfig
  82. # BCCSP (Blockchain crypto provider): Select which crypto implementation or
  83. # library to use
  84. BCCSP:
  85. Default: SW
  86. SW:
  87. Hash: SHA2
  88. Security: 256
  89. # Location of Key Store. If this is unset, a location will
  90. # be chosen using 'MSPDir'/keystore
  91. FileKeyStore:
  92. KeyStore:
  93. AnchorPeers:
  94. # AnchorPeers defines the location of peers which can be used
  95. # for cross org gossip communication. Note, this value is only
  96. # encoded in the genesis block in the Application section context
  97. - Host: peer2
  98. Port: 7051
  99. ################################################################################
  100. #
  101. # SECTION: Orderer
  102. #
  103. # - This section defines the values to encode into a config transaction or
  104. # genesis block for orderer related parameters
  105. #
  106. ################################################################################
  107. Orderer: &OrdererDefaults
  108. # Orderer Type: The orderer implementation to start
  109. # Available types are "solo" and "kafka"
  110. OrdererType: solo
  111. Addresses:
  112. - orderer0:7050
  113. # Batch Timeout: The amount of time to wait before creating a batch
  114. BatchTimeout: 2s
  115. # Batch Size: Controls the number of messages batched into a block
  116. BatchSize:
  117. # Max Message Count: The maximum number of messages to permit in a batch
  118. MaxMessageCount: 10
  119. # Absolute Max Bytes: The absolute maximum number of bytes allowed for
  120. # the serialized messages in a batch.
  121. AbsoluteMaxBytes: 99 MB
  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. Kafka:
  127. # Brokers: A list of Kafka brokers to which the orderer connects
  128. # NOTE: Use IP:port notation
  129. Brokers:
  130. - 127.0.0.1:9092
  131. # Organizations is the list of orgs which are defined as participants on
  132. # the orderer side of the network
  133. Organizations:
  134. ################################################################################
  135. #
  136. # SECTION: Application
  137. #
  138. # - This section defines the values to encode into a config transaction or
  139. # genesis block for application related parameters
  140. #
  141. ################################################################################
  142. Application: &ApplicationDefaults
  143. # Organizations is the list of orgs which are defined as participants on
  144. # the application side of the network
  145. Organizations: