Intermediate hash phase 4 (#396)
* another way to check if account has storage
* cleanup
* v0 of walk by db version
* save progress, to switch to another task. Put tombstone is still not correct.
* place tombstone only if exists something to hide
* db-based implementation
* db-based implementation
* db-based implementation
* fix prop check
* improve prop check logic
* Need custom logic to skip subtree for account and storage buckets because storage bucket has incarnation in key
* rebase to master
* remove all tombstones when account deleted
* remove all tombstones when account deleted
* added db integrity check
* don't rely on account.Root because it valid only about last incarnation
* remove all tombstones when account deleted
* dial with incarnation in MultiWalk2
* dial with incarnation in MultiWalk2
* when fixedbytes=40 resolver did compare cacheKey with storageKey without removing incarnation
* rebase to master
* rebase to master
Co-authored-by:
alex.sharov <alex.sharov@lazada.com>
Showing
- cmd/hack/hack.go 2 additions, 1 deletioncmd/hack/hack.go
- cmd/migrate/migrate_test.go 1 addition, 1 deletioncmd/migrate/migrate_test.go
- cmd/pics/state.go 10 additions, 10 deletionscmd/pics/state.go
- common/dbutils/composite_keys.go 13 additions, 8 deletionscommon/dbutils/composite_keys.go
- common/dbutils/helper.go 25 additions, 0 deletionscommon/dbutils/helper.go
- common/debug/experiments.go 3 additions, 0 deletionscommon/debug/experiments.go
- core/state/database.go 194 additions, 55 deletionscore/state/database.go
- core/state/database_test.go 147 additions, 48 deletionscore/state/database_test.go
- core/types/accounts/account.go 44 additions, 1 deletioncore/types/accounts/account.go
- eth/backend.go 1 addition, 1 deletioneth/backend.go
- eth/handler.go 4 additions, 0 deletionseth/handler.go
- ethdb/bolt_db.go 1 addition, 1 deletionethdb/bolt_db.go
- ethdb/interface.go 2 additions, 6 deletionsethdb/interface.go
- ethdb/memory_database.go 1 addition, 0 deletionsethdb/memory_database.go
- ethdb/mutation.go 8 additions, 4 deletionsethdb/mutation.go
- ethdb/remote/remotedbserver/server.go 5 additions, 5 deletionsethdb/remote/remotedbserver/server.go
- ethdb/remote/remotedbserver/server_test.go 10 additions, 10 deletionsethdb/remote/remotedbserver/server_test.go
- migrations/changeset_migration.go 3 additions, 2 deletionsmigrations/changeset_migration.go
- trie/resolver_stateful_cached.go 30 additions, 19 deletionstrie/resolver_stateful_cached.go
- trie/resolver_stateful_test.go 1 addition, 1 deletiontrie/resolver_stateful_test.go
Loading
Please register or sign in to comment