hbbft icon indicating copy to clipboard operation
hbbft copied to clipboard

Question regarding missed batch

Open promptlyspeaking opened this issue 4 years ago • 1 comments

Hi, I'm trying to understand different BFT implementations. Just a question if anybody could help me out, specific to this library.

Should there be a network failure that causes a node to miss a batch of contribution, what would happen? Does hbbft attempt to recover the missed batch or would the node fail forever from then on?

Thanks for your time.

promptlyspeaking avatar Nov 17 '20 05:11 promptlyspeaking

If I remember correctly the hbbft crate doesn't do that automatically, but gives the caller the option to do so. E.g. you could imagine using hbbft in a blockchain context, and whenever a batch gets finalized, you turn it into a block and all validators sign it. In such a program you could call skip_to_epoch(42) if you receive block 41 with a quorum of signatures, thus skipping epoch 41 and catching up, even if you missed the HBBFT messages from epoch 41.

afck avatar Nov 29 '20 10:11 afck