-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checkpoint: preserve own atx chain (#4612)
## Motivation Closes #4624 ## Changes code - if miner doesn't have any atx, check post data dir for metadata and preserve the commitment atx (and its deps) used for initialization - if miner has an atx that's not part of the snapshot, preserve its chain of deps as far as it can - if miner has an pending atx in nipost metadata, also preserve its positioning atx - abort preserving atx if any of its dependency is part of the snapshot of previous checkpoint - atx dependencies are recursively discovered. the order is important for the validation path - once node start services after recovering from checkpoint, validate and save the preserved atxs and poet proofs. systest TestCheckpoint - publish snapshot that only contains half of the miners atxs. the other miners need to preserve the chain of its own atxs - using checkpoint url for testing (instead of local snapshot files) cleanup - remove recovery from local file - move checkpoint related data to common/types, as post init dependency is introduced to checkpoint package. note: i tried shutting down nodes gracefully in admin::Recover() RPC instead of panicking during TestCheckpoint. but kubernetes doesn't restart the nodes automatically, which means the nodes will not restart to do the recovery.
- Loading branch information
1 parent
52d903d
commit f8bd113
Showing
18 changed files
with
934 additions
and
662 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
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
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
Oops, something went wrong.