Advertisement
Guest User

configtx.yaml

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