-
Notifications
You must be signed in to change notification settings - Fork 53
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
state_getKeysPaged
Returns duplicate keys
#1692
Comments
I'm not sure I understand your logs, but as far as I understand:
If so, this behavior is actually "intended" by smoldot. See TODO:
|
FWIW Substrate ignores the I made a small fix in Subxt to ignore such a key if it's returned, since we had a couple of issues raised about this. Would you be up for a PR in Smoldot to skip over the start_key to line up with Substrate? |
I was simply waiting for someone's confirmation that Substrate indeed skips the first key in order to open the PR. You could have simply commented here instead of adding a hack in SubXT (paritytech/subxt#1534). |
Awesome, thank you for the quick fix!
Since the fix was super small in Subxt I figured I may as well apply it there since we are a little out of date on Smoldot version anyway, so it'll give us a little breathing room to update it! |
Using smoldot 0.16 and smoldot-light 0.14 (Updating to latest blocked by #1638 since subxt uses currently the legacy RPC methods)
Repro case:
cd subxt
&&RUST_LOG="trace,polling=info,async_io=info,sync-service-polkadot=info,soketto=info" cargo run --example light_client_parachains --features="unstable-light-client"
logs.txt
cc paritytech/subxt#1453
The text was updated successfully, but these errors were encountered: