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

Run initial sync before starting background tasks #331

Merged
merged 1 commit into from
Jul 18, 2023
Merged

Conversation

roeierez
Copy link
Member

Here we move the initial sync (in case of a new node) to run before we start all background tasks.
It ensures that after the start method is completed successfully the node is synced and we have a valid node information in the database.
Also in case of a failure it prevents the sdk from starting, leaving it in a consistent state.

@roeierez roeierez requested a review from ok300 July 18, 2023 09:52
@roeierez roeierez merged commit 1207fe1 into main Jul 18, 2023
2 checks passed
@erdemyerebasmaz erdemyerebasmaz deleted the fix-initial-sync branch December 7, 2023 16:36
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.

None yet

1 participant