Maksim  Fedin
Maksim Fedin

Reputation: 15

Gossip protocol on Hyperledger Fabric

Does the gossip protocol is used only to spread the committed blocks via all peers on the "order" stage? Does it work on the “execute” stage, when the endorsing peers execute and sign the transactions?

Upvotes: 0

Views: 1320

Answers (1)

yacovm
yacovm

Reputation: 5140

The gossip component is the peer's communication layer, and it contributes to the block dissemination via having peers distribute blocks among themselves instead of having all of them pull them directly from the orderer nodes.

It works roughly like this: When the orderer cuts a new block, it appends it to its local file system. In every organization, there is usually a peer that is selected among the peers in its organization (for that channel) to pull blocks from the orderer, and forward them to other peers in its organziation. The other peers also forward the blocks even further to other peers, etc. etc. and this all happens via a "gossip" style protocol.

I recommend that you read the gossip section in the documentation.

Upvotes: 1

Related Questions