• gary rong's avatar
    core/state/snapshot: fix journal recovery from generating old journal (#21775) · e6402677
    gary rong authored
    * 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
    e6402677
blockchain_snapshot_test.go 25 KB