aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/genesis.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-20 20:29:52 +0800
committerobscuren <geffobscura@gmail.com>2014-05-20 20:29:52 +0800
commit7d3e99a2abcef6011714a7e6e515aa8e2bc738cc (patch)
treeeae3d0833e822a96e029584b3f775f33dc5be970 /ethchain/genesis.go
parentb4e156e1d723fe53eff238a634f6e83cb9d80492 (diff)
downloaddexon-7d3e99a2abcef6011714a7e6e515aa8e2bc738cc.tar.gz
dexon-7d3e99a2abcef6011714a7e6e515aa8e2bc738cc.tar.zst
dexon-7d3e99a2abcef6011714a7e6e515aa8e2bc738cc.zip
Fixed genesis and block data
Diffstat (limited to 'ethchain/genesis.go')
-rw-r--r--ethchain/genesis.go17
1 files changed, 12 insertions, 5 deletions
diff --git a/ethchain/genesis.go b/ethchain/genesis.go
index 935978a69..7e145ef53 100644
--- a/ethchain/genesis.go
+++ b/ethchain/genesis.go
@@ -15,7 +15,6 @@ var EmptyShaList = ethutil.Sha3Bin(ethutil.Encode([]interface{}{}))
var GenesisHeader = []interface{}{
// Previous hash (none)
- //"",
ZeroHash256,
// Sha of uncles
ethutil.Sha3Bin(ethutil.Encode([]interface{}{})),
@@ -23,15 +22,23 @@ var GenesisHeader = []interface{}{
ZeroHash160,
// Root state
"",
- // Sha of transactions
//EmptyShaList,
- ethutil.Sha3Bin(ethutil.Encode([]interface{}{})),
+ ZeroHash256,
+ //ethutil.Sha3Bin(ethutil.Encode(ZeroHash256)),
// Difficulty
ethutil.BigPow(2, 22),
+ // Number
+ ethutil.Big0,
+ // Block minimum gas price
+ ethutil.Big0,
+ // Block upper gas bound
+ big.NewInt(1000000),
+ // Block gas used
+ ethutil.Big0,
// Time
- int64(0),
+ ethutil.Big0,
// Extra
- "",
+ nil,
// Nonce
ethutil.Sha3Bin(big.NewInt(42).Bytes()),
}