mirror of https://github.com/poanetwork/hbbft.git
Fixed a condition for accepting HB messages in future epochs (#261)
* fixed a condition for accepting HB messages * corrected the condition
This commit is contained in:
parent
af05c44659
commit
326616e3b8
|
@ -125,7 +125,7 @@ where
|
|||
.entry(epoch)
|
||||
.or_insert_with(Vec::new)
|
||||
.push((sender_id.clone(), content));
|
||||
} else if epoch == self.epoch {
|
||||
} else if self.epoch <= epoch {
|
||||
let mut step = self
|
||||
.epoch_state_mut(epoch)?
|
||||
.handle_message_content(sender_id, content)?;
|
||||
|
|
Loading…
Reference in New Issue