yago-123 / chainnet

Blockchain built from scratch
0 stars 0 forks source link

Implement OnBlockAddition function for p2p module #30

Closed yago-123 closed 1 month ago

yago-123 commented 3 months ago

OnBlockAddition is called when a new block is added to the chain. Think and implement how this should be propagated to the other nodes via OnBlockAddition method.

Probably we need to implement the Gossip protocol from libp2p or we should notify all peers that we are conected to.