-
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
Duplicate storage iterator items using lightclient #1743
Comments
Ok, as mentioned here #1453 (comment) using the unstable backend and also using the latest smoldot v0.18.0 updated in #1722 fixes the issue with duplicate storage entries, but doesn't work with the current smoldot v0.16.0 available in subxt v0.37. In this case, the following error is raised Example tested:
|
This is because the method Extracted logs below:
I reckon that we probably should stabilize the unstable backend and update smoldot to fix this annoyance. EDIT: I created another issue for ☝️ I reckon that isn't related to duplicate storage items iter, see #1749 |
I wonder whether this is a duplicate or otherwise related to #1453. Here, older versions of Smoldot had a slightly different "legacy" API impl to Substrate nodes, leading to the dupe entry. A fix was pushed to Subxt a while ago to accomodate this though. |
I added some logging to the fetching logic in the reproducible example above and got this:
I elided the start of the keys because they are all identical. Here, we see the API using the correct "pagination start key" to retrieve the second batch, but ultimately the response back from Smoldot 0.16 is overlapping in many entries. Subxt tried to avoid this sort of issue by ignorign the first key we get back if it's identical to the "pagination start key", but this fix is obviously not working out here. The fix I think will have to be to use the currently unstable backend against Smoldot 0.18, as I can't see an obvious way to avoid this issue in Subxt offhand. |
We have updated smoldot v0.18 so closing this. Feel free to re-open if something isn't working |
It's worth checking: is the issue fixed using the latest smoldot but the default (ie legacy) backend? looking above I'm not sure if it would be! |
Hi there,
This issue is a follow up of #1722
Fetching storage items through an iterator returns duplicates when using lightclient, hanging the loop forever with the current version of subxt. The behaviour is improved using the latest smoldot dependencies but there are still duplicates.
This isue can be confirmed when running the example below:
The text was updated successfully, but these errors were encountered: