parallelchain-io / hotstuff_rs

Rust implementation of the HotStuff consensus algorithm.
38 stars 5 forks source link

Panic on seeing a `Vote` for incorrect chain id or view #30

Open karolinagrzeszkiewicz opened 8 months ago

karolinagrzeszkiewicz commented 8 months ago

In the collect method a replica panics on seeing a Vote for incorrect chain id or view. Although this method is only called on a crytographically correct vote, the vote can by cryptographically correct but for a different view or chain id. In such case the program panics and exits, which is an undesirable behaviour. Such messages should be simply ignored.