aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-07-26 20:25:25 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-07-26 20:44:54 +0800
commit3530acb9e23562ed349e48a6d32d6d1f57a5d9fb (patch)
tree63ee1d7a2db6702d131f6bd8eb42c409402206e5 /core
parent8a5ea466e4d97021f9c1422e76a5f4665a8a6b08 (diff)
downloadgo-tangerine-3530acb9e23562ed349e48a6d32d6d1f57a5d9fb.tar
go-tangerine-3530acb9e23562ed349e48a6d32d6d1f57a5d9fb.tar.gz
go-tangerine-3530acb9e23562ed349e48a6d32d6d1f57a5d9fb.tar.bz2
go-tangerine-3530acb9e23562ed349e48a6d32d6d1f57a5d9fb.tar.lz
go-tangerine-3530acb9e23562ed349e48a6d32d6d1f57a5d9fb.tar.xz
go-tangerine-3530acb9e23562ed349e48a6d32d6d1f57a5d9fb.tar.zst
go-tangerine-3530acb9e23562ed349e48a6d32d6d1f57a5d9fb.zip
core: genesis extra data field fix
Diffstat (limited to 'core')
-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),