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:
Vladimir Komendantskiy 2018-10-10 11:43:23 +01:00 committed by Andreas Fackler
parent af05c44659
commit 326616e3b8
1 changed files with 1 additions and 1 deletions

View File

@ -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)?;