forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[consensus] Restart safety for consensus integrity hash (MystenLabs#5518
) Consensus integrity hash calculation can diverge after restart because consensus hash calculation did not handle a case when executor can replay transactions. This can happen because executor replay transactions on the block-to-block basis, so after restart some transactions might be resent to consensus handler. The fix simply ignores transactions with index less than last seen execution index.
- Loading branch information
Showing
1 changed file
with
58 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters