Generating an orderer genesis block

After generating the certificate, the next step in the process is to generate the orderer genesis block. The configtxgen command allows users to create and inspect channel config. The configtxgen tool's output is largely controlled by the content of configtx.yaml, as follows:

Profiles:
ICOrgsOrdererGenesis:
Orderer:
<<: *OrdererDefaults
Organizations:
- *OrdererOrg
Consortiums:
InsuranceClaimConsortium:
Organizations:
- *Org1
- *Org2
- *Org3
ICOrgsChannel:
Consortium: InsuranceClaimConsortium
Application:
<<: *ApplicationDefaults
Organizations:
- *Org1
- *Org2
- *Org3
Organizations:
- &OrdererOrg
Name: OrdererOrg
ID: OrdererMSP
MSPDir: crypto-config/ordererOrganizations/ic.com/msp
- &Org1
Name: Org1MSP
ID: Org1MSP
MSPDir: crypto-config/peerOrganizations/org1.ic.com/msp
AnchorPeers:
- Host: peer0.org1.ic.com
Port: 7051
- &Org2
Name: Org2MSP
ID: Org2MSP
MSPDir: crypto-config/peerOrganizations/org2.ic.com/msp
AnchorPeers:
- Host: peer0.org2.ic.com
Port: 7051
- &Org3
Name: Org3MSP
ID: Org3MSP
MSPDir: crypto-config/peerOrganizations/org3.ic.com/msp


AnchorPeers:
- Host: peer0.org3.ic.com
Port: 7051
Orderer: &OrdererDefaults
OrdererType: solo
Addresses:
- orderer.ic.com:7050
BatchTimeout: 2s
BatchSize:
MaxMessageCount: 10
AbsoluteMaxBytes: 20 MB
PreferredMaxBytes: 512 KB
Kafka:
Brokers:
- 127.0.0.1:9092
Organizations:
Application: &ApplicationDefaults


Organizations:

We defined three organizations in the Organizations section of the configtx file; we specified each organization name, ID, MSPDir, and AnchorPeers. MSPDir describes cryptogen generated output MSP directories. AnchorPeers points to the peer node's host and port. It updates transactions in order to enable communication between peers of different organizations and finds all active participants of the channel, as follows:

configtxgen -profile ICOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block

An output similar to the following will be displayed on the console:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.55.137