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

introduce cumulative state_hash and expose it in API #5677

Open
2 tasks
dshulyak opened this issue Mar 11, 2024 · 0 comments
Open
2 tasks

introduce cumulative state_hash and expose it in API #5677

dshulyak opened this issue Mar 11, 2024 · 0 comments
Labels

Comments

@dshulyak
Copy link
Contributor

in the vm state_hash is a hash of accounts that were changed in the current layer, we want to have a more robust approach to check that nodes in the network see the state the same way.

  • compute and save cumulative_hash_current = hash(prev_cumulative_state_hash, state_hash) where prev_cumulative_state_hash for genesis is the state hash of genesis accounts
  • expose it over API

TODO i will post suggested api a bit later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant