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

Refactor sync from DSN #1565

Merged
merged 4 commits into from Jun 21, 2023
Merged

Refactor sync from DSN #1565

merged 4 commits into from Jun 21, 2023

Conversation

nazar-pc
Copy link
Member

A few tweaks I did working towards #1508

First commit removes annoying warning when node tries to finalize genesis block, the other two commits result in reusable import_blocks_from_dsn function that works with sharable ImportQueueService rather than ImportQueue (which is consumed by Substrate's networking and can't be shared).

import_blocks_from_dsn will later be called from more places.

Last commit fixed subspace networking disconnection from peers while heavy block importing is happening by letting it run in dedicated thread.

Code contributor checklist:

Copy link
Member

@shamil-gadelshin shamil-gadelshin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me.

@nazar-pc nazar-pc merged commit 065dc94 into main Jun 21, 2023
9 checks passed
@nazar-pc nazar-pc deleted the refactor-sync-from-dsn branch June 21, 2023 08:31
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

2 participants