aboutsummaryrefslogtreecommitdiffstats
path: root/light
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-10-03 16:40:05 +0800
committerGitHub <noreply@github.com>2016-10-03 16:40:05 +0800
commit1639f1174e1021f8c614929615d7ad92fec2d19f (patch)
tree47e1e558e2636c680183c921e1be943eef2fc964 /light
parentf88bca7ba96a16e10b9feee453dbdb4f81962f34 (diff)
parentd9ed63ec3840f9c7f4a58e8e4f5b245cbef05b85 (diff)
downloadgo-tangerine-1639f1174e1021f8c614929615d7ad92fec2d19f.tar
go-tangerine-1639f1174e1021f8c614929615d7ad92fec2d19f.tar.gz
go-tangerine-1639f1174e1021f8c614929615d7ad92fec2d19f.tar.bz2
go-tangerine-1639f1174e1021f8c614929615d7ad92fec2d19f.tar.lz
go-tangerine-1639f1174e1021f8c614929615d7ad92fec2d19f.tar.xz
go-tangerine-1639f1174e1021f8c614929615d7ad92fec2d19f.tar.zst
go-tangerine-1639f1174e1021f8c614929615d7ad92fec2d19f.zip
Merge pull request #3074 from karalabe/release/1.4
Geth 1.4.15 "Come at me bro"
Diffstat (limited to 'light')
-rw-r--r--light/state_test.go3
1 files changed, 2 insertions, 1 deletions
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)
}