-
Notifications
You must be signed in to change notification settings - Fork 50
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
chain_subscribeFinalizedHeads
subscription seems to not produce blocks
#1638
Comments
This is off-topic, but I would suggest you take a look at the logs that SubXT generates and truncate the JSON-RPC responses, because 2/3rds of the log file is the metadata being dumped |
What I suspect happens is: Normally, immediately after opening a GrandPa substream we send a neighbor packet, and this should be enough, but for some reason this doesn't work. Knowing the Substrate code here, I wouldn't be surprised if it was a Substrate issue. |
Maybe it would be a good idea to ask for justifications of blocks that peers report to have finalized but for which we haven't received a commit. |
The old rpcs are producing blocks, however the current version of smoldot is slower to produce finalized blocks:
Version used (a similar behavior is present on origin/main):
With an older version of smoldot v0.16.0 and smoldot-light v0.14.0 the syncing + subxt testing takes ~30ms Let me know if I could provide more info, thanks 🙏 |
The old RPCs are now producing blocks as expected, have raised #1896 for a sync regression, thanks 🙏 |
We have detected a regression in subxt when switching from
After further investigating the issue, the culprit seems to be the
chain_subscribeFinalizedHeads
subscription.The subxt::finalized_headers_subscription subscribes to
chain_subscribeFinalizedHeads
, then tries to consume 4 finalized blocks from the subscription.From the previous logs, extracted from the attached
regression-log.txt
, smoldot provides one notification response for the subscription id 2. However, we receive all responses in the older version of smoldot.The older version produces the expected logs with the 4 finalized blocks, extracted from the attached
older-version-log.txt
:Repro steps
Logs
Logs have been captured with
RUST_LOG="trace,polling=info,async_io=info,soketto=info" cargo test --release --package integration-tests --features unstable-light-client -- --nocapture
older-version-log.txt
regression-log.txt
cc paritytech/subxt#1400
Please let me know if I could provide more details/logs here, since I can reproduce the issue constantly 🙏
The text was updated successfully, but these errors were encountered: