go-ethereum/core/vm
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
..
runtime feat: return 0 for op DIFFICULTY (#167) 2022-10-27 17:31:45 +08:00
testdata core/vm, protocol_params: implement eip-2565 modexp repricing (#21607) 2020-11-13 13:39:59 +01:00
access_list_tracer.go feat: add more data into the execution trace (#20) 2022-02-21 10:15:57 +08:00
analysis.go core/vm: faster code analysis (#23381) 2021-08-24 10:00:10 +03:00
analysis_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
common.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
contract.go feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
contracts.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
contracts_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
doc.go core/vm: remove JIT VM codes (#16362) 2018-03-26 13:48:04 +03:00
eips.go feat: disable SELFDESTRUCT opcode in l2geth (#147) 2022-08-22 14:17:57 -07:00
errors.go core/vm: implement EIP-2681: Limit account nonce to 2^64-1 (#23853) 2021-11-11 15:00:58 +01:00
evm.go feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
gas.go core/vm: use uint256 in EVM implementation (#20787) 2020-06-08 15:24:40 +03:00
gas_table.go feat: disable SELFDESTRUCT opcode in l2geth (#147) 2022-08-22 14:17:57 -07:00
gas_table_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
gen_structlog.go refactor: optimize and improve tps for contract call. (#83) 2022-05-04 10:12:17 +08:00
instructions.go feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
instructions_test.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
interface.go feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
interpreter.go feat: add more data into the execution trace (#20) 2022-02-21 10:15:57 +08:00
jump_table.go feat: disable SELFDESTRUCT opcode in l2geth (#147) 2022-08-22 14:17:57 -07:00
logger.go Fix witness generator for failed call/create op and tx (#146) 2022-10-10 17:13:24 +08:00
logger_json.go refactor: optimize and improve tps for contract call. (#83) 2022-05-04 10:12:17 +08:00
logger_test.go feat: add more data into the execution trace (#20) 2022-02-21 10:15:57 +08:00
logger_trace.go feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
memory.go core/vm: use uint256 in EVM implementation (#20787) 2020-06-08 15:24:40 +03:00
memory_table.go core/vm: 64 bit memory and gas calculations (#19210) 2019-03-12 11:40:05 +02:00
opcodes.go core/vm: Make INVALID a defined opcode (#118) 2022-06-22 17:18:47 +08:00
operations_acl.go feat: disable SELFDESTRUCT opcode in l2geth (#147) 2022-08-22 14:17:57 -07:00
stack.go core,eth: call frame tracing (#23087) 2021-09-17 09:31:22 +02:00
stack_table.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00