go-ethereum/core/state/snapshot
gary rong e6402677c2
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
2020-11-04 13:41:46 +02:00
..
account.go core/state/snapshot: implement storage iterator (#20971) 2020-04-29 12:53:08 +03:00
conversion.go core/state/snapshot: release iterator after verification 2020-05-04 15:14:08 +03:00
difflayer_test.go core/state/snapshot: implement storage iterator (#20971) 2020-04-29 12:53:08 +03:00
difflayer.go all: fix typos in comments (#21118) 2020-05-25 10:21:28 +02:00
disklayer_test.go core: improve snapshot journal recovery (#21594) 2020-10-29 21:01:58 +02:00
disklayer.go core/state: extend snapshotter to handle account resurrections 2020-03-03 15:52:00 +02:00
generate_test.go core/state/snapshot: stop generator if it hits missing trie nodes (#21649) 2020-10-05 11:52:36 +03:00
generate.go core: improve snapshot journal recovery (#21594) 2020-10-29 21:01:58 +02:00
iterator_binary.go core/state/snapshot: implement storage iterator (#20971) 2020-04-29 12:53:08 +03:00
iterator_fast.go all: fix typos in comments (#21118) 2020-05-25 10:21:28 +02:00
iterator_test.go core/state/snapshot: implement storage iterator (#20971) 2020-04-29 12:53:08 +03:00
iterator.go all: fix typos in comments (#21118) 2020-05-25 10:21:28 +02:00
journal.go core/state/snapshot: fix journal recovery from generating old journal (#21775) 2020-11-04 13:41:46 +02:00
snapshot_test.go core/state/snapshot: implement storage iterator (#20971) 2020-04-29 12:53:08 +03:00
snapshot.go core: improve snapshot journal recovery (#21594) 2020-10-29 21:01:58 +02:00
sort.go core: fix broken tests due to API changes + linter 2020-02-25 12:51:16 +02:00
wipe_test.go all: simplify and fix database iteration with prefix/start (#20808) 2020-04-15 14:08:53 +03:00
wipe.go all: fix typos in comments (#21118) 2020-05-25 10:21:28 +02:00