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

fix: storage root mismatch at block 1789153 #4189

Draft
wants to merge 9 commits into
base: eclesio/sync-strategy
Choose a base branch
from

Conversation

jimjbrettj
Copy link
Contributor

Changes

Tests

go test -tags integration github.com/ChainSafe/gossamer

Issues

#4182

@jimjbrettj jimjbrettj changed the base branch from development to eclesio/sync-strategy September 19, 2024 15:19
@@ -832,6 +832,7 @@ func ext_trie_blake2_256_root_version_2(ctx context.Context, m api.Module, dataS
}

func ext_trie_blake2_256_ordered_root_version_1(ctx context.Context, m api.Module, dataSpan uint64) uint32 {
// Why is this hardcoded to 0??
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we hard code to 0 because the routine to get the blake2_256 hash for the trie is the same but only the version changes, so we use version 0 as default for ext_trie_blake2_256_ordered_root_version_1, the runtime still using this host function for extrinsic root state hash

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.

2 participants