configtx.yaml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. ---
  2. ################################################################################
  3. #
  4. # Profile - meant to be used with docker-2orgs-2peerseach-e2e.yml
  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: OrdererMSP
  36. # ID to load the MSP definition as
  37. ID: OrdererMSP
  38. # MSPDir is the filesystem path which contains the MSP configuration
  39. #########################################################################
  40. # FIXME: this path needs to be fixed to point to the actual location of #
  41. # the project 'fabric-sdk-node' in the file system #
  42. #########################################################################
  43. MSPDir: examples/midea/channel/crypto-config/ordererOrganizations/ordererOrg1/msp
  44. # BCCSP (Blockchain crypto provider): Select which crypto implementation or
  45. # library to use
  46. BCCSP:
  47. Default: SW
  48. SW:
  49. Hash: SHA2
  50. Security: 256
  51. # Location of Key Store. If this is unset, a location will
  52. # be chosen using 'MSPDir'/keystore
  53. FileKeyStore:
  54. KeyStore:
  55. - &Org0
  56. # DefaultOrg defines the organization which is used in the sampleconfig
  57. # of the fabric.git development environment
  58. Name: Org1MSP
  59. # ID to load the MSP definition as
  60. ID: Org1MSP
  61. # MSPDir is the filesystem path which contains the MSP configuration
  62. #########################################################################
  63. # FIXME: this path needs to be fixed to point to the actual location of #
  64. # the project 'fabric-sdk-node' in the file system #
  65. #########################################################################
  66. MSPDir: examples/midea/channel/crypto-config/peerOrganizations/peerOrg1/msp/
  67. # BCCSP (Blockchain crypto provider): Select which crypto implementation or
  68. # library to use
  69. BCCSP:
  70. Default: SW
  71. SW:
  72. Hash: SHA2
  73. Security: 256
  74. # Location of Key Store. If this is unset, a location will
  75. # be chosen using 'MSPDir'/keystore
  76. FileKeyStore:
  77. KeyStore:
  78. AnchorPeers:
  79. # AnchorPeers defines the location of peers which can be used
  80. # for cross org gossip communication. Note, this value is only
  81. # encoded in the genesis block in the Application section context
  82. - Host: peer0
  83. Port: 7051
  84. - Host: peer1
  85. Port: 7051
  86. - &Org1
  87. # DefaultOrg defines the organization which is used in the sampleconfig
  88. # of the fabric.git development environment
  89. Name: Org2MSP
  90. # ID to load the MSP definition as
  91. ID: Org2MSP
  92. # MSPDir is the filesystem path which contains the MSP configuration
  93. #########################################################################
  94. # FIXME: this path needs to be fixed to point to the actual location of #
  95. # the project 'fabric-sdk-node' in the file system #
  96. #########################################################################
  97. MSPDir: examples/midea/channel/crypto-config/peerOrganizations/peerOrg2/msp/
  98. # BCCSP (Blockchain crypto provider): Select which crypto implementation or
  99. # library to use
  100. BCCSP:
  101. Default: SW
  102. SW:
  103. Hash: SHA2
  104. Security: 256
  105. # Location of Key Store. If this is unset, a location will
  106. # be chosen using 'MSPDir'/keystore
  107. FileKeyStore:
  108. KeyStore:
  109. AnchorPeers:
  110. # AnchorPeers defines the location of peers which can be used
  111. # for cross org gossip communication. Note, this value is only
  112. # encoded in the genesis block in the Application section context
  113. - Host: peer2
  114. Port: 7051
  115. - Host: peer3
  116. Port: 7051
  117. ################################################################################
  118. #
  119. # SECTION: Orderer
  120. #
  121. # - This section defines the values to encode into a config transaction or
  122. # genesis block for orderer related parameters
  123. #
  124. ################################################################################
  125. Orderer: &OrdererDefaults
  126. # Orderer Type: The orderer implementation to start
  127. # Available types are "solo" and "kafka"
  128. OrdererType: solo
  129. Addresses:
  130. - orderer0:7050
  131. # Batch Timeout: The amount of time to wait before creating a batch
  132. BatchTimeout: 10s
  133. # Batch Size: Controls the number of messages batched into a block
  134. BatchSize:
  135. # Max Message Count: The maximum number of messages to permit in a batch
  136. MaxMessageCount: 10
  137. # Absolute Max Bytes: The absolute maximum number of bytes allowed for
  138. # the serialized messages in a batch.
  139. AbsoluteMaxBytes: 99 MB
  140. # Preferred Max Bytes: The preferred maximum number of bytes allowed for
  141. # the serialized messages in a batch. A message larger than the preferred
  142. # max bytes will result in a batch larger than preferred max bytes.
  143. PreferredMaxBytes: 512 KB
  144. Kafka:
  145. # Brokers: A list of Kafka brokers to which the orderer connects
  146. # NOTE: Use IP:port notation
  147. Brokers:
  148. - orderer0:9092
  149. # Organizations is the list of orgs which are defined as participants on
  150. # the orderer side of the network
  151. Organizations:
  152. ################################################################################
  153. #
  154. # SECTION: Application
  155. #
  156. # - This section defines the values to encode into a config transaction or
  157. # genesis block for application related parameters
  158. #
  159. ################################################################################
  160. Application: &ApplicationDefaults
  161. # Organizations is the list of orgs which are defined as participants on
  162. # the application side of the network
  163. Organizations: