A gossip protocol spreads a message over a peer-to-peer network by having each node that receives it for the first time forward it (or announce it) to some or all of its peers, so that it reaches every node in a number of hops that grows with the logarithm of the network’s size.
fig_chain.py, nw_chain.to_leader().