HomeSource World

core/state/snapshot: fix journal recovery from generating old journal (#21775)

Description

core/state/snapshot: fix journal recovery from generating old journal (#21775)

  • core/state/snapshot: print warning if failed to resolve journal
  • core/state/snapshot: fix snapshot recovery

When we meet the snapshot journal consisted with:

  • disk layer generator with new-format
  • diff layer journal with old-format

The base layer should be returned without error.
The broken diff layer can be reconstructed later
but we definitely don't want to reconstruct the
huge diff layer.

  • core: add tests

Details

Provenance
gary rong <garyrong0905@gmail.com>Authored on Wed, Nov 4, 11:41 AM
GitHub <noreply@github.com>Committed on Wed, Nov 4, 11:41 AM
Parents
rGETH3eebf340386d: common: remove ToHex and ToHexArray (#21610)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGETHe6402677c2bb: core/state/snapshot: fix journal recovery from generating old journal (#21775) (authored by gary rong <garyrong0905@gmail.com>).Wed, Nov 4, 11:41 AM