evm: return valid nonce on eth_getBlockByNumber
(#156)
This commit is contained in:
parent
62fe3d7e80
commit
b5ea5bf6b9
@ -183,7 +183,7 @@ func FormatBlock(
|
|||||||
"number": hexutil.Uint64(header.Height),
|
"number": hexutil.Uint64(header.Height),
|
||||||
"hash": hexutil.Bytes(header.Hash()),
|
"hash": hexutil.Bytes(header.Hash()),
|
||||||
"parentHash": hexutil.Bytes(header.LastBlockID.Hash),
|
"parentHash": hexutil.Bytes(header.LastBlockID.Hash),
|
||||||
"nonce": hexutil.Uint64(0), // PoW specific
|
"nonce": ethtypes.BlockNonce{}, // PoW specific
|
||||||
"sha3Uncles": ethtypes.EmptyUncleHash, // No uncles in Tendermint
|
"sha3Uncles": ethtypes.EmptyUncleHash, // No uncles in Tendermint
|
||||||
"logsBloom": bloom,
|
"logsBloom": bloom,
|
||||||
"stateRoot": hexutil.Bytes(header.AppHash),
|
"stateRoot": hexutil.Bytes(header.AppHash),
|
||||||
|
Loading…
Reference in New Issue
Block a user