Skip to content

Trie check / repair tool #20858

Closed
Closed
@holiman

Description

@holiman

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..

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions