aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm
diff options
context:
space:
mode:
authorferhat elmas <elmas.ferhat@gmail.com>2018-02-14 21:41:05 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-02-14 21:41:05 +0800
commitff225db813b6d56ecd35db301bc582ca04e42b27 (patch)
tree7f0259aa91bb2629598bd2112684d50303a9c46c /core/vm
parent752761cb578f19aa1d81bbb060d7a0166553ae01 (diff)
downloaddexon-ff225db813b6d56ecd35db301bc582ca04e42b27.tar
dexon-ff225db813b6d56ecd35db301bc582ca04e42b27.tar.gz
dexon-ff225db813b6d56ecd35db301bc582ca04e42b27.tar.bz2
dexon-ff225db813b6d56ecd35db301bc582ca04e42b27.tar.lz
dexon-ff225db813b6d56ecd35db301bc582ca04e42b27.tar.xz
dexon-ff225db813b6d56ecd35db301bc582ca04e42b27.tar.zst
dexon-ff225db813b6d56ecd35db301bc582ca04e42b27.zip
core/vm: remove unused hashing (#16075)
Diffstat (limited to 'core/vm')
-rw-r--r--core/vm/interpreter.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/core/vm/interpreter.go b/core/vm/interpreter.go
index 482e67a3a..82a6d3de6 100644
--- a/core/vm/interpreter.go
+++ b/core/vm/interpreter.go
@@ -20,9 +20,7 @@ import (
"fmt"
"sync/atomic"
- "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/params"
)
@@ -123,11 +121,6 @@ func (in *Interpreter) Run(contract *Contract, input []byte) (ret []byte, err er
return nil, nil
}
- codehash := contract.CodeHash // codehash is used when doing jump dest caching
- if codehash == (common.Hash{}) {
- codehash = crypto.Keccak256Hash(contract.Code)
- }
-
var (
op OpCode // current opcode
mem = NewMemory() // bound memory