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

Expose the warp_sync::BuildRuntime and warp_sync::BuildChainInformation variants from all.rs #644

Merged
merged 3 commits into from
May 31, 2023

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented May 31, 2023

This relatively big refactor makes the API user of all.rs manually indicate to build the runtime or the chain information during the warp syncing.
In addition to exposing a better API, this also no longer silently discards the errors that happen during this process.

The big refactor is necessary because the WarpSync(InProgress) enum variant is now WarpSync(InProgress | Finished). All the code that expects the WarpSync to be in progress now need to also handle the situation where it is already finished and just waiting to be transitioned to a different syncing strategy.

@tomaka tomaka added this pull request to the merge queue May 31, 2023
Merged via the queue into smol-dot:main with commit ec0c4de May 31, 2023
@tomaka tomaka deleted the build-runtime-public branch May 31, 2023 10:15
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