configtx.yaml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. # Copyright IBM Corp. All Rights Reserved.
  2. #
  3. # SPDX-License-Identifier: Apache-2.0
  4. #
  5. ---
  6. ################################################################################
  7. #
  8. # Profile
  9. #
  10. # - Different configuration profiles may be encoded here to be specified
  11. # as parameters to the configtxgen tool
  12. #
  13. ################################################################################
  14. Profiles:
  15. TwoOrgsOrdererGenesis:
  16. Orderer:
  17. <<: *OrdererDefaults
  18. Organizations:
  19. - *OrdererOrg
  20. Consortiums:
  21. SampleConsortium:
  22. Organizations:
  23. - *Org1
  24. - *Org2
  25. TwoOrgsChannel:
  26. Consortium: SampleConsortium
  27. Application:
  28. <<: *ApplicationDefaults
  29. Organizations:
  30. - *Org1
  31. - *Org2
  32. ################################################################################
  33. #
  34. # Section: Organizations
  35. #
  36. # - This section defines the different organizational identities which will
  37. # be referenced later in the configuration.
  38. #
  39. ################################################################################
  40. Organizations:
  41. # SampleOrg defines an MSP using the sampleconfig. It should never be used
  42. # in production but may be used as a template for other definitions
  43. - &OrdererOrg
  44. # DefaultOrg defines the organization which is used in the sampleconfig
  45. # of the fabric.git development environment
  46. Name: OrdererMSP
  47. # ID to load the MSP definition as
  48. ID: OrdererMSP
  49. # MSPDir is the filesystem path which contains the MSP configuration
  50. MSPDir: crypto-config/ordererOrganizations/example.com/msp
  51. - &Org1
  52. # DefaultOrg defines the organization which is used in the sampleconfig
  53. # of the fabric.git development environment
  54. Name: Org1MSP
  55. # ID to load the MSP definition as
  56. ID: Org1MSP
  57. MSPDir: crypto-config/peerOrganizations/org1.example.com/msp
  58. AnchorPeers:
  59. # AnchorPeers defines the location of peers which can be used
  60. # for cross org gossip communication. Note, this value is only
  61. # encoded in the genesis block in the Application section context
  62. - Host: peer0.org1.example.com
  63. Port: 7051
  64. - &Org2
  65. # DefaultOrg defines the organization which is used in the sampleconfig
  66. # of the fabric.git development environment
  67. Name: Org2MSP
  68. # ID to load the MSP definition as
  69. ID: Org2MSP
  70. MSPDir: crypto-config/peerOrganizations/org2.example.com/msp
  71. AnchorPeers:
  72. # AnchorPeers defines the location of peers which can be used
  73. # for cross org gossip communication. Note, this value is only
  74. # encoded in the genesis block in the Application section context
  75. - Host: peer0.org2.example.com
  76. Port: 7051
  77. ################################################################################
  78. #
  79. # SECTION: Orderer
  80. #
  81. # - This section defines the values to encode into a config transaction or
  82. # genesis block for orderer related parameters
  83. #
  84. ################################################################################
  85. Orderer: &OrdererDefaults
  86. # Orderer Type: The orderer implementation to start
  87. # Available types are "solo" and "kafka"
  88. OrdererType: solo
  89. Addresses:
  90. - orderer.example.com:7050
  91. # Batch Timeout: The amount of time to wait before creating a batch
  92. BatchTimeout: 2s
  93. # Batch Size: Controls the number of messages batched into a block
  94. BatchSize:
  95. # Max Message Count: The maximum number of messages to permit in a batch
  96. MaxMessageCount: 10
  97. # Absolute Max Bytes: The absolute maximum number of bytes allowed for
  98. # the serialized messages in a batch.
  99. AbsoluteMaxBytes: 98 MB
  100. # Preferred Max Bytes: The preferred maximum number of bytes allowed for
  101. # the serialized messages in a batch. A message larger than the preferred
  102. # max bytes will result in a batch larger than preferred max bytes.
  103. PreferredMaxBytes: 512 KB
  104. Kafka:
  105. # Brokers: A list of Kafka brokers to which the orderer connects
  106. # NOTE: Use IP:port notation
  107. Brokers:
  108. - 127.0.0.1:9092
  109. # Organizations is the list of orgs which are defined as participants on
  110. # the orderer side of the network
  111. Organizations:
  112. ################################################################################
  113. #
  114. # SECTION: Application
  115. #
  116. # - This section defines the values to encode into a config transaction or
  117. # genesis block for application related parameters
  118. #
  119. ################################################################################
  120. Application: &ApplicationDefaults
  121. # Organizations is the list of orgs which are defined as participants on
  122. # the application side of the network
  123. Organizations: