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.
Prepose consensus commit prologue in checkpoint (MystenLabs#18023)
## Description This PR moves consensus commit prologue to the beginning of the checkpoint if it presents. This is to make sure that the consensus commit prologue is before all the cancelled transactions in the checkpoint, and hence when doing sequential replay, we know which transactions are cancelled. This is achieved by finding the consensus commit prologue in the pending checkpoint, and always places it the first before all other sorted transactions. It also builds on several assumptions: - There is at most one consensus commit prologue transactions in a pending checkpoint. - The consensus commit prologue shouldn't have any dependencies that aren't in any previous checkpoints. ## Test plan Added consensus commit prologue invariant check for all integration simtests. --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK:
- Loading branch information
Showing
5 changed files
with
297 additions
and
31 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
Oops, something went wrong.