core: check if sender is EOA (#23303)
This adds a check to verify that a sender-account does not have code, which means that the codehash is either `emptyCodeHash` _OR_ not present. The latter occurs IFF the sender did not previously exist, a situation which can only occur with zero cost gasprices.
Showing
- core/error.go 3 additions, 0 deletionscore/error.go
- core/state_processor_test.go 41 additions, 1 deletioncore/state_processor_test.go
- core/state_transition.go 8 additions, 0 deletionscore/state_transition.go
- eth/tracers/api_test.go 5 additions, 5 deletionseth/tracers/api_test.go
- tests/init_test.go 29 additions, 8 deletionstests/init_test.go
- tests/state_test.go 5 additions, 2 deletionstests/state_test.go
Loading
Please register or sign in to comment