configtx.yaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. MideaOrgs:
  12. Orderer:
  13. <<: *OrdererDefaults
  14. Organizations:
  15. - *OrdererOrg
  16. Application:
  17. <<: *ApplicationDefaults
  18. Organizations:
  19. - *Org0
  20. ################################################################################
  21. #
  22. # Section: Organizations
  23. #
  24. # - This section defines the different organizational identities which will
  25. # be referenced later in the configuration.
  26. #
  27. ################################################################################
  28. Organizations:
  29. # SampleOrg defines an MSP using the sampleconfig. It should never be used
  30. # in production but may be used as a template for other definitions
  31. - &OrdererOrg
  32. # DefaultOrg defines the organization which is used in the sampleconfig
  33. # of the fabric.git development environment
  34. Name: OrdererOrg
  35. # ID to load the MSP definition as
  36. ID: OrdererMSP
  37. # MSPDir is the filesystem path which contains the MSP configuration
  38. MSPDir: examples/midea/crypto-config/ordererOrganizations/ordererOrg1/msp
  39. # BCCSP (Blockchain crypto provider): Select which crypto implementation or
  40. # library to use
  41. BCCSP:
  42. Default: SW
  43. SW:
  44. Hash: SHA2
  45. Security: 256
  46. # Location of Key Store. If this is unset, a location will
  47. # be chosen using 'MSPDir'/keystore
  48. FileKeyStore:
  49. KeyStore:
  50. - &Org0
  51. # DefaultOrg defines the organization which is used in the sampleconfig
  52. # of the fabric.git development environment
  53. Name: Org1MSP
  54. # ID to load the MSP definition as
  55. ID: Org1MSP
  56. MSPDir: examples/midea/crypto-config/peerOrganizations/peerOrg1/msp
  57. # BCCSP (Blockchain crypto provider): Select which crypto implementation or
  58. # library to use
  59. BCCSP:
  60. Default: SW
  61. SW:
  62. Hash: SHA2
  63. Security: 256
  64. # Location of Key Store. If this is unset, a location will
  65. # be chosen using 'MSPDir'/keystore
  66. FileKeyStore:
  67. KeyStore:
  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
  73. Port: 7051
  74. ################################################################################
  75. #
  76. # SECTION: Orderer
  77. #
  78. # - This section defines the values to encode into a config transaction or
  79. # genesis block for orderer related parameters
  80. #
  81. ################################################################################
  82. Orderer: &OrdererDefaults
  83. # Orderer Type: The orderer implementation to start
  84. # Available types are "solo" and "kafka"
  85. OrdererType: solo
  86. Addresses:
  87. - orderer0:7050
  88. # Batch Timeout: The amount of time to wait before creating a batch
  89. BatchTimeout: 2s
  90. # Batch Size: Controls the number of messages batched into a block
  91. BatchSize:
  92. # Max Message Count: The maximum number of messages to permit in a batch
  93. MaxMessageCount: 10
  94. # Absolute Max Bytes: The absolute maximum number of bytes allowed for
  95. # the serialized messages in a batch.
  96. AbsoluteMaxBytes: 99 MB
  97. # Preferred Max Bytes: The preferred maximum number of bytes allowed for
  98. # the serialized messages in a batch. A message larger than the preferred
  99. # max bytes will result in a batch larger than preferred max bytes.
  100. PreferredMaxBytes: 512 KB
  101. Kafka:
  102. # Brokers: A list of Kafka brokers to which the orderer connects
  103. # NOTE: Use IP:port notation
  104. Brokers:
  105. - 127.0.0.1:9092
  106. # Organizations is the list of orgs which are defined as participants on
  107. # the orderer side of the network
  108. Organizations:
  109. ################################################################################
  110. #
  111. # SECTION: Application
  112. #
  113. # - This section defines the values to encode into a config transaction or
  114. # genesis block for application related parameters
  115. #
  116. ################################################################################
  117. Application: &ApplicationDefaults
  118. # Organizations is the list of orgs which are defined as participants on
  119. # the application side of the network
  120. Organizations: