github.com/kchristidis/fabric@v1.0.4-0.20171028114726-837acd08cde1/sampleconfig/configtx.yaml (about) 1 # Copyright IBM Corp. All Rights Reserved. 2 # 3 # SPDX-License-Identifier: Apache-2.0 4 # 5 6 --- 7 ################################################################################ 8 # 9 # Profiles 10 # 11 # - Different configuration profiles may be encoded here to be specified 12 # as parameters to the configtxgen tool. The profiles which specify consortiums 13 # are to be used for generating the orderer genesis block. With the correct 14 # consortium members defined in the orderer genesis block, channel creation 15 # requests may be generated with only the org member names and a consortium name 16 # 17 ################################################################################ 18 Profiles: 19 20 # SampleInsecureSolo defines a configuration which uses the Solo orderer, 21 # contains no MSP definitions, and allows all transactions and channel 22 # creation requests for the consortium SampleConsortium. 23 SampleInsecureSolo: 24 Orderer: 25 <<: *OrdererDefaults 26 Consortiums: 27 SampleConsortium: 28 Organizations: 29 30 # SampleNoConsortium is very similar to SampleInsecureSolo, except it 31 # does not define Consortiums. 32 SampleNoConsortium: 33 Orderer: 34 <<: *OrdererDefaults 35 36 # SampleInsecureKafka defines a configuration that differs from the 37 # SampleInsecureSolo one only in that is uses the Kafka-based orderer. 38 SampleInsecureKafka: 39 Orderer: 40 <<: *OrdererDefaults 41 OrdererType: kafka 42 Consortiums: 43 SampleConsortium: 44 Organizations: 45 46 # SampleDevModeSolo defines a configuration which uses the Solo orderer, 47 # contains the sample MSP as both orderer and consortium member, and 48 # requires only basic membership for admin privileges 49 SampleDevModeSolo: 50 Orderer: 51 <<: *OrdererDefaults 52 Organizations: 53 - <<: *SampleOrg 54 AdminPrincipal: Role.MEMBER 55 Consortiums: 56 SampleConsortium: 57 Organizations: 58 - <<: *SampleOrg 59 AdminPrincipal: Role.MEMBER 60 61 # SampleSingleMSPSolo defines a configuration which uses the Solo orderer, 62 # and contains a single MSP definition (the MSP sampleconfig). 63 # The Consortium SampleConsortium has only a single member, SampleOrg 64 SampleSingleMSPSolo: 65 Orderer: 66 <<: *OrdererDefaults 67 Organizations: 68 - *SampleOrg 69 Consortiums: 70 SampleConsortium: 71 Organizations: 72 - *SampleOrg 73 74 # SampleEmptyInsecureChannel defines a channel with no members 75 # and therefore no access control 76 SampleEmptyInsecureChannel: 77 Consortium: SampleConsortium 78 Application: 79 Organizations: 80 81 # SampleSingleMSPChannel defines a channel with only the sample org as a 82 # member. It is designed to be used in conjunction with SampleSingleMSPSolo 83 # and SampleSingleMSPKafka orderer profiles 84 SampleSingleMSPChannel: 85 Consortium: SampleConsortium 86 Application: 87 Organizations: 88 - *SampleOrg 89 90 ################################################################################ 91 # 92 # Section: Organizations 93 # 94 # - This section defines the different organizational identities which will 95 # be referenced later in the configuration. 96 # 97 ################################################################################ 98 Organizations: 99 100 # SampleOrg defines an MSP using the sampleconfig. It should never be used 101 # in production but may be used as a template for other definitions. 102 - &SampleOrg 103 # DefaultOrg defines the organization which is used in the sampleconfig 104 # of the fabric.git development environment. 105 Name: SampleOrg 106 107 # ID to load the MSP definition as. 108 ID: DEFAULT 109 110 # MSPDir is the filesystem path which contains the MSP configuration. 111 MSPDir: msp 112 113 # AdminPrincipal dictates the type of principal used for an 114 # organization's Admins policy. Today, only the values of Role.ADMIN and 115 # Role.MEMBER are accepted, which indicates a principal of role type 116 # ADMIN and role type MEMBER respectively. 117 AdminPrincipal: Role.ADMIN 118 119 AnchorPeers: 120 # AnchorPeers defines the location of peers which can be used for 121 # cross-org gossip communication. Note, this value is only encoded 122 # in the genesis block in the Application section context. 123 - Host: 127.0.0.1 124 Port: 7051 125 126 ################################################################################ 127 # 128 # SECTION: Orderer 129 # 130 # - This section defines the values to encode into a config transaction or 131 # genesis block for orderer related parameters. 132 # 133 ################################################################################ 134 Orderer: &OrdererDefaults 135 136 # Orderer Type: The orderer implementation to start. 137 # Available types are "solo" and "kafka". 138 OrdererType: solo 139 140 Addresses: 141 - 127.0.0.1:7050 142 143 # Batch Timeout: The amount of time to wait before creating a batch. 144 BatchTimeout: 2s 145 146 # Batch Size: Controls the number of messages batched into a block. 147 BatchSize: 148 149 # Max Message Count: The maximum number of messages to permit in a 150 # batch. 151 MaxMessageCount: 10 152 153 # Absolute Max Bytes: The absolute maximum number of bytes allowed for 154 # the serialized messages in a batch. If the "kafka" OrdererType is 155 # selected, set 'message.max.bytes' and 'replica.fetch.max.bytes' on the 156 # Kafka brokers to a value that is larger than this one. 157 AbsoluteMaxBytes: 10 MB 158 159 # Preferred Max Bytes: The preferred maximum number of bytes allowed for 160 # the serialized messages in a batch. A message larger than the 161 # preferred max bytes will result in a batch larger than preferred max 162 # bytes. 163 PreferredMaxBytes: 512 KB 164 165 # Max Channels is the maximum number of channels to allow on the ordering 166 # network. When set to 0, this implies no maximum number of channels. 167 MaxChannels: 0 168 169 Kafka: 170 # Brokers: A list of Kafka brokers to which the orderer connects. 171 # NOTE: Use IP:port notation 172 Brokers: 173 - 127.0.0.1:9092 174 175 # Organizations is the list of orgs which are defined as participants on 176 # the orderer side of the network. 177 Organizations: 178 179 ################################################################################ 180 # 181 # SECTION: Application 182 # 183 # - This section defines the values to encode into a config transaction or 184 # genesis block for application related parameters. 185 # 186 ################################################################################ 187 Application: &ApplicationDefaults 188 189 # Organizations is the list of orgs which are defined as participants on 190 # the application side of the network. 191 Organizations: