HomeSource World

core/state/snapshot: implement storage iterator (#20971)

Authored by gary rong <garyrong0905@gmail.com> on Apr 29 2020, 9:53 AM.

Description

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

Details

Committed
GitHub <noreply@github.com>Apr 29 2020, 9:53 AM
Parents
rGETH1264c19f1153: go.mod : goupnp v1.0.0 upgrade (#20996)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGETH26d271dfbba1: core/state/snapshot: implement storage iterator (#20971) (authored by gary rong <garyrong0905@gmail.com>).Apr 29 2020, 9:53 AM