Skip to content

Commit

Permalink
An epoch should not increment without view being incremented as well
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszrzasik committed Dec 12, 2024
1 parent f1a21c0 commit f82a563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/task-impls/src/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ impl<TYPES: NodeType, I: NodeImplementation<TYPES>, V: Versions> TransactionTask
*epoch
};
ensure!(
*view > *self.cur_view || *epoch > *self.cur_epoch,
*view > *self.cur_view && *epoch >= *self.cur_epoch,
debug!(
"Received a view change to an older view and epoch: tried to change view to {:?}\
and epoch {:?} though we are at view {:?} and epoch {:?}",
Expand Down

0 comments on commit f82a563

Please sign in to comment.