-
Notifications
You must be signed in to change notification settings - Fork 247
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
Disable Block request and State sync handler and make domain sync service always force_synced
to enable transaction propagation
#2173
Conversation
…c service to be always synced and update the usages of domain's sync service to use Consensus sync service
50b0dbe
to
1048d37
Compare
|
hmm.. Per my testing that was not the case. Transactions were not propagated when the Sync status was |
Okay, I also met the tx propagate issue before in the test, and it is also workaround by setting |
My intuition was correct where node does not propagate transaction if the |
@NingLin-P message your node received from its peer |
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.
The changes look good to me overall.
Previously, I used force_synced = true
to workaround the issue in the test was mainly due to its name suggested, but now I have taken a closer look at our polkadot-sdk
fork and still can't find the relation between force_synced
and is_major_syncing
.
Makes sense then |
This PR brings two changes to the Domain networking
force_synced
since domain do not sync from the peer nodes but rather derives and imports blocks from Consensus chain.Domain nodes did not propagate transactions to other peers since the node's sync service is returns
Pending
sync state. With domainsync_service
set toforce_synced
, the transactions are being propagated. I have not looked too deep into substrate code to bypass this withforce_synced
and would appreciate if anyone know a better way to achieve the same with outforce_synced
on Domains.cc: @jfrank-summit
Code contributor checklist: