Finally, glorious HEX

This commit is contained in:
Gustav Simonsson 2015-04-22 15:21:02 +02:00
parent 24de35ef09
commit 9834f855fa
1 changed files with 4 additions and 4 deletions

View File

@ -226,10 +226,10 @@ func mustConvertHeader(in btHeader) *types.Header {
UncleHash: mustConvertHash(in.UncleHash), UncleHash: mustConvertHash(in.UncleHash),
ParentHash: mustConvertHash(in.ParentHash), ParentHash: mustConvertHash(in.ParentHash),
Extra: mustConvertBytes(in.ExtraData), Extra: mustConvertBytes(in.ExtraData),
GasUsed: mustConvertBigInt(in.GasUsed, 10), GasUsed: mustConvertBigInt(in.GasUsed, 16),
GasLimit: mustConvertBigInt(in.GasLimit, 10), GasLimit: mustConvertBigInt(in.GasLimit, 16),
Difficulty: mustConvertBigInt(in.Difficulty, 10), Difficulty: mustConvertBigInt(in.Difficulty, 16),
Time: mustConvertUint(in.Timestamp, 10), Time: mustConvertUint(in.Timestamp, 16),
} }
// XXX cheats? :-) // XXX cheats? :-)
header.SetNonce(mustConvertUint(in.Nonce, 16)) header.SetNonce(mustConvertUint(in.Nonce, 16))