FatihBAKIR / blockstore

2 stars 1 forks source link

Block propagation #2

Closed FatihBAKIR closed 6 years ago

FatihBAKIR commented 6 years ago

When a replica mines a new block, it should propagate the block to other replicas. How many replies to receive before deeming the block committed should be a configuration parameter.

kylecrsn commented 6 years ago

This is specified by a combination of broadcastMode and broadcastMinGuarantee, where the former says if the method of broadcasting is synchronous vs asynchronous, and the latter specifies how many of the nodes in the cluster it wants to hear back from. broadcastMinGuarantee is only relevant when broadcastMode is set to Sync, since if its set to Async we'll just broadcast asynchronously regardless of the messages we hear, and will only need to handle when we hear back that there was a fork and we were the smaller of the two