0
votes

According to Fabric-node-sdk documentation

For a peer node to become part of a channel, it must be sent the genesis block

According to fabric-documentation

There is one ledger per channel. Each peer maintains a copy of the ledger for each channel of which they are a member.

To join channel peer requires a genesis block, the genesis block is acquired from channel.

So does this mean that channel also holds a copy of ledger?

Edited
For a new network First we create channel and then peers join the channel.
So how the peers will get the genesis block when they yet not part of channel and don't have copy of ledger?
Consider the first peer who is joining channel, no other peers are joined yet.

1

1 Answers

0
votes

There only exists one consistent channel ledger across the channel held all the peers and orderers in the channel. The channel doesn't exist as a tangible entity but rather as a logical boundary allowing concurrent actions.

So, When a peer requires the genesis block or any block in a channel ledger, It is provided by the other peers in the channel by discovery service or the orderer.

The channel config in the ledger holds the info about the peers in channels along with the MSP's defined for the channel.