Repository navigation
Add aptos-waypoint-extractor: parallel epoch-chain verification and waypoint output - #444
Open
movement-sm wants to merge 3 commits into
Open
movement-sm wants to merge 3 commits into
movement-sm wants to merge 3 commits into
Conversation
…a backup service Fetches epoch-ending ledger infos over the backup service HTTP API in many concurrent range requests, verifies each against its predecessor's next epoch state on all cores, links the chunks sequentially from a trusted waypoint and emits verified waypoints. Includes unit tests and a mock-server HTTP test. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
aptos-waypoint-extractor(storage/backup/waypoint-extractor/): it extracts every epoch-ending ledger info from a node's backup service, verifies the chain from a trusted waypoint in parallel, and prints verified waypoints. New nodes can then start from a recent waypoint instead of walking the full epoch chain (Movement mainnet is at ~10.8M epochs).What it does
/epoch_ending_ledger_infos/<start>/<end>in concurrent range requests, so download overlaps verification. Each range also fetches its predecessor epoch, so chunks verify independently.next_epoch_state, caching the aggregated key per validator set.version:hash. Optionally writes<epoch> <waypoint>lines every N epochs, so later runs can start from an earlier result.aptos-types,aptos-crypto,bcs,rayon,tokio,reqwest), with noaptos-db.Image
aptos-waypoint-extractorbinary and aghcr.io/movement-network/aptos-waypoint-extractorcontainer job.docker/aptos-waypoint-extractor/mirrors aptos-debugger's.Tests
cargo test -p aptos-waypoint-extractor --release: 23 passed, 1 ignored (the throughput benchmark).Not yet verified
state_sync.state_sync_driver.start_epochset to the waypoint's epoch, as well asbase.waypoint. The README covers it. A testnet trial comes next.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.