Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dot/sync): Resume full sync after warp sync is finished #4518

Open
wants to merge 58 commits into
base: development
Choose a base branch
from

Conversation

dimartiro
Copy link
Contributor

@dimartiro dimartiro commented Jan 30, 2025

Changes

Set up everything to resume syncing from the latest block retrieved using warp sync

Summary of changes

  • Retrieve block # 1 when state sync finishes
    • Use it to set the slot number
  • Set up the context to continue syncing from latest block
    • Store state in storage
    • Set new runtime from state
    • Create a new blocktree from the latest block
    • Finalize latest block
      • Do not try to finalize block ancestors
  • Fix tests

Tests

make test

# or by running a node with warp sync

make build
./bin/gossamer init --force --chain paseo
./bin/gossamer --sync warp --chain paseo

Issues

#4430

@dimartiro dimartiro changed the title Resume full sync after warp sync is finished feat(dot/sync): Resume full sync after warp sync is finished Jan 31, 2025
@dimartiro dimartiro force-pushed the diego/statesync/strategy branch from 527803f to 9165a5b Compare February 3, 2025 14:08
Base automatically changed from diego/statesync/strategy to development February 3, 2025 14:39
@dimartiro dimartiro marked this pull request as ready for review February 10, 2025 12:09
@dimartiro dimartiro self-assigned this Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant