forked from cerc-io/plugeth
Merge pull request #1529 from obscuren/extra-data-fix
core: genesis extra data field fix
This commit is contained in:
commit
d18d256442
@ -75,7 +75,7 @@ func WriteGenesisBlock(stateDb, blockDb common.Database, reader io.Reader) (*typ
|
|||||||
Nonce: types.EncodeNonce(common.String2Big(genesis.Nonce).Uint64()),
|
Nonce: types.EncodeNonce(common.String2Big(genesis.Nonce).Uint64()),
|
||||||
Time: common.String2Big(genesis.Timestamp).Uint64(),
|
Time: common.String2Big(genesis.Timestamp).Uint64(),
|
||||||
ParentHash: common.HexToHash(genesis.ParentHash),
|
ParentHash: common.HexToHash(genesis.ParentHash),
|
||||||
Extra: common.Hex2Bytes(genesis.ExtraData),
|
Extra: common.FromHex(genesis.ExtraData),
|
||||||
GasLimit: common.String2Big(genesis.GasLimit),
|
GasLimit: common.String2Big(genesis.GasLimit),
|
||||||
Difficulty: difficulty,
|
Difficulty: difficulty,
|
||||||
MixDigest: common.HexToHash(genesis.Mixhash),
|
MixDigest: common.HexToHash(genesis.Mixhash),
|
||||||
|
Loading…
Reference in New Issue
Block a user