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.
[checkpoints] Detect checkpoint hard fork early (MystenLabs#11003)
This PR detects checkpoints hard fork early in checkpoint builder and panics validator. This is needed to prevent chain from signing certificates on the fast path, reducing potential fork impact. There is some discussion whether panic is the right response in this case. This PR follows pattern established in the `CheckpointExecutor` and panics on fork. We can revisit both places in a separate PR if we want different response in case of a fork.
- Loading branch information
Showing
2 changed files
with
19 additions
and
2 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
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