Closed karolinagrzeszkiewicz closed 8 months ago
Edit: this has been falsely labelled as an issue. pending_validator_set_updates
indeed breaks and returns None
when self.get(...)
fails: &mut &*self.get(&combine(&PENDING_VALIDATOR_SET_UPDATES, block))?
. It also correctly throws an error if deserializing fails, since if getting the bytes from the key-value store succeeds, deserializing should also succeed.
pending_validator_set_updates
should returnNone
when the deserializedValidatorSetUpdates
turns out to be empty, or the deserializing fails: https://github.com/parallelchain-io/hotstuff_rs/blob/master/src/state.rs#L918