go-ethereum/core/state/snapshot
gary rong b63e3c37a6
core: improve snapshot journal recovery (#21594)
* core/state/snapshot: introduce snapshot journal version

* core: update the disk layer in an atomic way

* core: persist the disk layer generator periodically

* core/state/snapshot: improve logging

* core/state/snapshot: forcibly ensure the legacy snapshot is matched

* core/state/snapshot: add debug logs

* core, tests: fix tests and special recovery case

* core: polish

* core: add more blockchain tests for snapshot recovery

* core/state: fix comment

* core: add recovery flag for snapshot

* core: add restart after start-after-crash tests

* core/rawdb: fix imports

* core: fix tests

* core: remove log

* core/state/snapshot: fix snapshot

* core: avoid callbacks in SetHead

* core: fix setHead cornercase where the threshold root has state

* core: small docs for the test cases

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2020-10-29 21:01:58 +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: improve snapshot journal recovery (#21594) 2020-10-29 21:01:58 +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