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

Error generating compact proof #76

Closed
liamaharon opened this issue Jan 25, 2024 · 1 comment · Fixed by #77
Closed

Error generating compact proof #76

liamaharon opened this issue Jan 25, 2024 · 1 comment · Fixed by #77
Assignees
Labels
bug Something isn't working

Comments

@liamaharon
Copy link
Contributor

liamaharon commented Jan 25, 2024

Reported here https://substrate.stackexchange.com/questions/10351/try-runtime-failed-to-generate-compact-proof-trieerrorinvalidstateroot and also impacts Asset Hub Kusama main branch.

Calling into https://github.com/paritytech/polkadot-sdk/blob/4ca193f88b55dc9b12d7a586113f9db192e1bdd8/substrate/primitives/trie/src/storage_proof.rs#L103 when calculating the PoV can return an error when the runtime differs in a particular way relative to the runtime the snapshot was generated from.

To debug, can bisect the Fellowship Runtime repo commit history starting from v1.0.1 to see exactly which change caused this issue.

@liamaharon liamaharon added the bug Something isn't working label Jan 25, 2024
@liamaharon liamaharon self-assigned this Jan 25, 2024
@liamaharon liamaharon changed the title Sometimes error generating compact proof Error generating compact proof Jan 25, 2024
@liamaharon
Copy link
Contributor Author

Simply an error when the PoV is empty e.g. due to Migrations tuple being empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant