Paprika icon indicating copy to clipboard operation
Paprika copied to clipboard

Interface and logic to support snap sync for Paprika

Open damian-orzechowski opened this issue 1 year ago • 1 comments

Implement changes to the IRawState interface required to fully support sync process for Paprika:

  • Add methods to set boundary proof nodes directly as merkle data. Proof nodes to be added together with corresponding RlpMemo which contains hashes of child nodes outside of currently processed data ranges (account or storage). Merkle data created for snap sync is used only to ensure correct root hash calculation and is not persisted on Commit (new EntryType - Proof.
    • CreateMerkleBranch
  • Support hash calculation request for arbitrary path for healing (fast sync) purposes
  • Support to create directly merkle data for healing (fast sync)
    • CreateMerkleExtension, CreateMerkleLeaf

damian-orzechowski avatar Jun 09 '24 20:06 damian-orzechowski

Code Coverage

Package Line Rate Branch Rate Health
Paprika 80% 76%
Summary 80% (5049 / 6289) 76% (1750 / 2298)

Minimum allowed line rate is 75%

github-actions[bot] avatar Jan 03 '25 13:01 github-actions[bot]