aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-07-27 06:15:36 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-07-27 06:15:36 +0800
commitd18d256442e2dc3413ebd9f571e1a5f6be366c09 (patch)
tree63ee1d7a2db6702d131f6bd8eb42c409402206e5
parent8a5ea466e4d97021f9c1422e76a5f4665a8a6b08 (diff)
parent3530acb9e23562ed349e48a6d32d6d1f57a5d9fb (diff)
downloaddexon-d18d256442e2dc3413ebd9f571e1a5f6be366c09.tar.gz
dexon-d18d256442e2dc3413ebd9f571e1a5f6be366c09.tar.zst
dexon-d18d256442e2dc3413ebd9f571e1a5f6be366c09.zip
Merge pull request #1529 from obscuren/extra-data-fix
core: genesis extra data field fix
-rw-r--r--core/genesis.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/genesis.go b/core/genesis.go
index 2f218724a..86e494766 100644
--- a/core/genesis.go
+++ b/core/genesis.go
@@ -75,7 +75,7 @@ func WriteGenesisBlock(stateDb, blockDb common.Database, reader io.Reader) (*typ
Nonce: types.EncodeNonce(common.String2Big(genesis.Nonce).Uint64()),
Time: common.String2Big(genesis.Timestamp).Uint64(),
ParentHash: common.HexToHash(genesis.ParentHash),
- Extra: common.Hex2Bytes(genesis.ExtraData),
+ Extra: common.FromHex(genesis.ExtraData),
GasLimit: common.String2Big(genesis.GasLimit),
Difficulty: difficulty,
MixDigest: common.HexToHash(genesis.Mixhash),