poanetwork / hbbft

An implementation of the paper "Honey Badger of BFT Protocols" in Rust. This is a modular library of consensus.
Other
357 stars 96 forks source link

Fix a SyncKeyGen and a DHB test issue. #388

Closed afck closed 5 years ago

afck commented 5 years ago

SyncKeyGen should tolerate duplicate Part messages as long as they are identical.

The drop_and_re_add test had an arithmetic overflow, because it tried to remove more faulty nodes than nodes in total.

I also renamed shutdown_epoch to re_add_epoch in the test, because that's what it seems to actually do.