aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-11-04 06:45:16 +0800
committerobscuren <geffobscura@gmail.com>2014-11-04 06:45:16 +0800
commitd87aa2488583e10b09b93dcb8741d3be051697a5 (patch)
treec3cb2e76cb324c30664be2134605c305c6963ea0
parent92c7aca817a78cc1b14a8d57a0be20b4772a1d69 (diff)
downloadgo-tangerine-d87aa2488583e10b09b93dcb8741d3be051697a5.tar
go-tangerine-d87aa2488583e10b09b93dcb8741d3be051697a5.tar.gz
go-tangerine-d87aa2488583e10b09b93dcb8741d3be051697a5.tar.bz2
go-tangerine-d87aa2488583e10b09b93dcb8741d3be051697a5.tar.lz
go-tangerine-d87aa2488583e10b09b93dcb8741d3be051697a5.tar.xz
go-tangerine-d87aa2488583e10b09b93dcb8741d3be051697a5.tar.zst
go-tangerine-d87aa2488583e10b09b93dcb8741d3be051697a5.zip
Fixed genesis
-rw-r--r--chain/genesis.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/chain/genesis.go b/chain/genesis.go
index 3a552f583..14117a82c 100644
--- a/chain/genesis.go
+++ b/chain/genesis.go
@@ -15,6 +15,7 @@ var ZeroHash256 = make([]byte, 32)
var ZeroHash160 = make([]byte, 20)
var ZeroHash512 = make([]byte, 64)
var EmptyShaList = crypto.Sha3(ethutil.Encode([]interface{}{}))
+var EmptyListRoot = crypto.Sha3(ethutil.Encode(""))
var GenesisHeader = []interface{}{
// Previous hash (none)
@@ -25,10 +26,10 @@ var GenesisHeader = []interface{}{
ZeroHash160,
// Root state
EmptyShaList,
- // tx sha
- EmptyShaList,
- // receipt list
- EmptyShaList,
+ // tx root
+ EmptyListRoot,
+ // receipt root
+ EmptyListRoot,
// bloom
ZeroHash512,
// Difficulty