core/tracing: add GetCodeHash to StateDB (#30784)

This PR extends the tracing.StateDB interface by adding a GetCodeHash function.
pull/30811/head
Nebojsa Urosevic 2 months ago committed by GitHub
parent b4d99e3917
commit d7e7b54190
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      core/tracing/hooks.go

@ -42,6 +42,7 @@ type StateDB interface {
GetBalance(common.Address) *uint256.Int
GetNonce(common.Address) uint64
GetCode(common.Address) []byte
GetCodeHash(common.Address) common.Hash
GetState(common.Address, common.Hash) common.Hash
GetTransientState(common.Address, common.Hash) common.Hash
Exist(common.Address) bool

Loading…
Cancel
Save