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 state root #1413

Merged
merged 1 commit into from
Nov 17, 2022
Merged

Fix state root #1413

merged 1 commit into from
Nov 17, 2022

Conversation

turuslan
Copy link
Contributor

Referenced issues

Description of the Change

  • TrieStorageProviderImpl reused by RuntimeInstancesPool didn't clear persistent_batch_, so forceCommit returned wrong root

https://github.com/soramitsu/kagome/blob/ff91cec93517a5a270d4a13ed35b57bce0b9ca90/core/runtime/common/trie_storage_provider_impl.cpp#L102-L105

Benefits

  • State root is always computed correctly

Possible Drawbacks

@turuslan turuslan enabled auto-merge (squash) November 17, 2022 15:03
@codecov
Copy link

codecov bot commented Nov 17, 2022

Codecov Report

Merging #1413 (714a2fe) into master (ff91cec) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1413   +/-   ##
=======================================
  Coverage   24.45%   24.45%           
=======================================
  Files         638      638           
  Lines       24084    24085    +1     
  Branches    12492    12492           
=======================================
+ Hits         5889     5890    +1     
  Misses      12938    12938           
  Partials     5257     5257           
Impacted Files Coverage Δ
core/runtime/common/trie_storage_provider_impl.cpp 31.57% <100.00%> (+0.91%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@turuslan turuslan merged commit 90fb3cd into master Nov 17, 2022
@turuslan turuslan deleted the fix/trie-root branch November 17, 2022 16:00
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.

3 participants