Skip to content
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

Remove dupe storage item if we get one back, to be compatible with Smoldot + legacy RPCs #1534

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

jsdw
Copy link
Collaborator

@jsdw jsdw commented Apr 15, 2024

Smoldot returns the provided start_key when fetching storage items (see smol-dot/smoldot#1692), whereas we don't expect this back from Substrate (it's badly named really; start_key does imply it will be handed back to me).

In Subxt we remove such an entry if we find it when iterating over storage entries, to avoid duplicate entries being returned.

Closes #1453, closes #1525

@jsdw jsdw requested a review from a team as a code owner April 15, 2024 10:10
subxt/src/backend/legacy/mod.rs Outdated Show resolved Hide resolved
@jsdw jsdw merged commit 9765ad0 into master Apr 15, 2024
13 checks passed
@jsdw jsdw deleted the jsdw-dupe-storage-smoldot branch April 15, 2024 10:42
@jsdw jsdw mentioned this pull request May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Light Client: Iteration on map storage will never stop. LightClient storage iterator returns duplicates
2 participants