parallelchain-io / hotstuff_rs

Rust implementation of the HotStuff consensus algorithm.
34 stars 4 forks source link

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

Open karolinagrzeszkiewicz opened 3 months ago

karolinagrzeszkiewicz commented 3 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.