From cb84e3f02953f2df166ae69369d222dcbbd7d78d Mon Sep 17 00:00:00 2001 From: Péter Szilágyi Date: Sat, 1 Oct 2016 15:44:53 +0300 Subject: cmd, core, internal, light, tests: avoid hashing the code in the VM --- light/state_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'light') diff --git a/light/state_test.go b/light/state_test.go index d7014a2dc..d4fe95022 100644 --- a/light/state_test.go +++ b/light/state_test.go @@ -23,6 +23,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/state" + "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/trie" "golang.org/x/net/context" @@ -60,7 +61,7 @@ func makeTestState() (common.Hash, ethdb.Database) { so.SetNonce(100) } so.AddBalance(big.NewInt(int64(i))) - so.SetCode([]byte{i, i, i}) + so.SetCode(crypto.Keccak256Hash([]byte{i, i, i}), []byte{i, i, i}) so.UpdateRoot(sdb) st.UpdateStateObject(so) } -- cgit