Skip to content

Commit ff225db

Browse files
ferhatelmaskaralabe
authored andcommitted
core/vm: remove unused hashing (#16075)
1 parent 752761c commit ff225db

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

core/vm/interpreter.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ import (
2020
"fmt"
2121
"sync/atomic"
2222

23-
"github.com/ethereum/go-ethereum/common"
2423
"github.com/ethereum/go-ethereum/common/math"
25-
"github.com/ethereum/go-ethereum/crypto"
2624
"github.com/ethereum/go-ethereum/params"
2725
)
2826

@@ -123,11 +121,6 @@ func (in *Interpreter) Run(contract *Contract, input []byte) (ret []byte, err er
123121
return nil, nil
124122
}
125123

126-
codehash := contract.CodeHash // codehash is used when doing jump dest caching
127-
if codehash == (common.Hash{}) {
128-
codehash = crypto.Keccak256Hash(contract.Code)
129-
}
130-
131124
var (
132125
op OpCode // current opcode
133126
mem = NewMemory() // bound memory

0 commit comments

Comments
 (0)