Generate Genesis Block for Orderer

Q

How to generate the Generate Genesis Block for the Orderer peer?

✍: FYIcenter.com

A

When running a Hyperledger Fabric network, orderer peers also maintains a special blockchain called the orderer system channel (or ordering system channel).

If you are starting a new orderer peer, you need to generate the genesis block for the orderer system channel.

You can use the configtxgen tool provided in ~/hyperledger-binaries/fabric-samples/bin directory to generate the genesis block.

You can use the configtxgen tool provided in ~/hyperledger-binaries/fabric-samples/bin directory to generate a new genesis block.

Or you can borrow the one created in BYFN tutorials:

$ cd fabric-orderer

$ cp ~/hyperledger-binaries/fabric-samples/first-network\
   /channel-artifacts/genesis.block .

$ ls -l genesis.block
-rw-r--r-- 1 fyicenter 12980 Apri  1 02:13 genesis.block

 

docker-compose-orderer.yaml - Docker Configuration

orderer.yaml - Orderer Peer Configuration File

Setting Up Orderer Peer Manually

⇑⇑ Hyperledger Tutorials

2019-08-23, 286👍, 0💬