go-ethereum/core/state
Péter Garamvölgyi 81e7775aa8
feat: dual code hash (#188)
* add KeccakCodeHash and CodeSize to StateAccount

* update StateAccount marshalling logic

* change emptyCodeHash to poseidon(nil)

* purge StateAccount.hash

* fix/disable failing tests

* change keccak and poseidon hash order in StateAccount

* fix lint

* update l2trace account wrapper

* update eth_getProof response type

* fix eth_getProof response type

* goimports

* update the codehash computation

* update the codehash test cases

* go mod tidy

* fix tests

* use keccak instead of poseidon

* update trace codehash field name

* upgrade zktrie to 4.2

* trigger ci

* update state account marshalling according to spec

* improve generatorStats estimation

* add comment

* upgrade zktrie to 4.3

* go mod tidy

* misc fixes

* fix TestDump

* fix snap sync tests

* handle err in the codehash

* fix tests in snapshot/generate_test.go

* remove prevhash from state journal

* add state_account_marshalling_test.go

* goimports

* add more tests

---------

Co-authored-by: Ho Vei <noelwei@gmail.com>
Co-authored-by: Haichen Shen <shenhaichen@gmail.com>
2023-02-08 16:12:41 -08:00
..
pruner feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
snapshot feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
access_list.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
database.go zktrie part2: add zktrie; allow switch trie type by config; (#113) 2022-06-27 11:17:02 +08:00
dump.go feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
iterator.go feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
iterator_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
journal.go feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
metrics.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
state_object.go feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
state_object_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
state_test.go feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
statedb.go feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
statedb_test.go feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
sync.go feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
sync_test.go feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
trie_prefetcher.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
trie_prefetcher_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00