-
Notifications
You must be signed in to change notification settings - Fork 248
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
Domain chain network stack updates #2999
Conversation
- add last_confirmed_domain_block_receipt method
- add network handler for custon request-response protocol - add get `get_last_confirmed_domain_block_receipt` function to obtain remote domain data
64041cc
to
2796912
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but I'm not familiar enough to approve. Has a minor rustfmt issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sense in general, left a few nits.
tx_handler_controller, | ||
network_starter, | ||
sync_service, | ||
_block_downloader, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems _block_downloader
is not used, not sure why made this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
block_downloader
is exported for the future usage. I will get a domain block body and header to import already downloaded state for the last confirmed domain block.
This PR prepares the domain networking stack for domain snap-sync.
Changes:
pause_sync
variable totrue
on domain network initialization. We don't rely on Substrate sync in domain network.Code contributor checklist: