Closed
Description
Related to various issues where trie nodes go missing, a.k.a data corruption. Examples include #20845
We should have a geth ... repairtrie
, or geth .. checktrie
. What that command would do, is
- Load up the chain,( not initiate any synch or peering)
- Start at the trie root, and verify the hash.
- Walk down the trie and verify each hash.
- If a node cannot be verified, flag the missing hash/path for download.
- Continue until trie is done
- Generate report about trie health, missing nodes/paths.
At some point, also download the msising nodes from a peer, via fastsync protocol..