plugeth/core/state/snapshot
gary rong 26d271dfbb
core/state/snapshot: implement storage iterator (#20971)
* core/state/snapshot: implement storage iterator

* core/state/snapshot, tests: implement helper function

* core/state/snapshot: fix storage issue

If an account is deleted in the tx_1 but recreated in the tx_2,
the it can happen that in this diff layer, both destructedSet
and storageData records this account. In this case, the storage
iterator should be able to iterate the slots belong to new account
but disable further iteration in deeper layers(belong to old account)

* core/state/snapshot: address peter and martin's comment

* core/state: address comments

* core/state/snapshot: fix test
2020-04-29 12:53:08 +03:00
..
account.go core/state/snapshot: implement storage iterator (#20971) 2020-04-29 12:53:08 +03:00
conversion.go core/state/snapshot: implement storage iterator (#20971) 2020-04-29 12:53:08 +03:00
difflayer_test.go core/state/snapshot: implement storage iterator (#20971) 2020-04-29 12:53:08 +03:00
difflayer.go core/state/snapshot: implement storage iterator (#20971) 2020-04-29 12:53:08 +03:00
disklayer_test.go all: seperate consensus error and evm internal error (#20830) 2020-04-22 11:25:36 +03:00
disklayer.go core/state: extend snapshotter to handle account resurrections 2020-03-03 15:52:00 +02:00
generate.go core/state/snapshot: implement storage iterator (#20971) 2020-04-29 12:53:08 +03:00
iterator_binary.go core/state/snapshot: implement storage iterator (#20971) 2020-04-29 12:53:08 +03:00
iterator_fast.go core/state/snapshot: implement storage iterator (#20971) 2020-04-29 12:53:08 +03:00
iterator_test.go core/state/snapshot: implement storage iterator (#20971) 2020-04-29 12:53:08 +03:00
iterator.go core/state/snapshot: implement storage iterator (#20971) 2020-04-29 12:53:08 +03:00
journal.go core/state: extend snapshotter to handle account resurrections 2020-03-03 15:52:00 +02:00
snapshot_test.go core/state/snapshot: implement storage iterator (#20971) 2020-04-29 12:53:08 +03:00
snapshot.go core/state/snapshot: implement storage iterator (#20971) 2020-04-29 12:53:08 +03: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: simplify and fix database iteration with prefix/start (#20808) 2020-04-15 14:08:53 +03:00