• 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
Name
Last commit
Last update
..
snapshot Loading commit data...
access_list.go Loading commit data...
database.go Loading commit data...
dump.go Loading commit data...
iterator.go Loading commit data...
iterator_test.go Loading commit data...
journal.go Loading commit data...
state_object.go Loading commit data...
state_object_test.go Loading commit data...
state_test.go Loading commit data...
statedb.go Loading commit data...
statedb_test.go Loading commit data...
sync.go Loading commit data...
sync_test.go Loading commit data...