solana-with-rpc-optimizations/ledger-tool
steviez 6bbf514e78
Add ability to output components that go into Bank hash (#32632)
When a consensus divergance occurs, the current workflow involves a
handful of manual steps to hone in on the offending slot and
transaction. This process isn't overly difficult to execute; however, it
is tedious and currently involves creating and parsing logs.

This change introduces functionality to output a debug file that
contains the components go into the bank hash. The file can be generated
in two ways:
- Via solana-validator when the node realizes it has diverged
- Via solana-ledger-tool verify by passing a flag

When a divergance occurs now, the steps to debug would be:
- Grab the file from the node that diverged
- Generate a file for the same slot with ledger-tool with a known good
  version
- Diff the files, they are pretty-printed json
2023-08-15 00:12:05 -05:00
..
src Add ability to output components that go into Bank hash (#32632) 2023-08-15 00:12:05 -05:00
tests Make RocksFifo storage size API expose an Option<u64> (#28192) 2022-10-04 12:38:40 -05:00
.gitignore
Cargo.toml Move accounts-db code to its own crate (#32766) 2023-08-09 13:03:36 -07:00