-
Notifications
You must be signed in to change notification settings - Fork 992
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
Persisted db hashes may not match persisted data #1708
Comments
Can you provide the relevant lines and files in the code where it reads the hash? |
namada/apps/src/lib/node/ledger/shell/mod.rs Line 573 in 4bc441e
|
If you chase that function down, it leads here: namada/core/src/ledger/storage/merkle_tree.rs Line 395 in 4bc441e
|
@batconjurer Is this issue still applicable? |
Oh wow, haven't thought about this in a while. I'll need to dig back into it |
Yes, this is still relevant @cwgoes |
The app root hash field is stored along with all data to disk. On restart, the hash field is read but not checked against the data that has been reloaded. It is possible that flushing to disk can be interrupted and thus the correct hash is persisted but not all the data is written. Thus on start up, the ledger starts to make progress (since it has the correct app hash), but will result in state divergence one block later.
To fix
The text was updated successfully, but these errors were encountered: