forked from cerc-io/laconicd-deprecated
rpc: fix parent hash format (#222)
This commit is contained in:
parent
e6f1874cfc
commit
0fc3472705
@ -178,7 +178,7 @@ func FormatBlock(
|
||||
return map[string]interface{}{
|
||||
"number": hexutil.Uint64(header.Height),
|
||||
"hash": hexutil.Bytes(header.Hash()),
|
||||
"parentHash": hexutil.Bytes(header.LastBlockID.Hash),
|
||||
"parentHash": common.BytesToHash(header.LastBlockID.Hash.Bytes()),
|
||||
"nonce": ethtypes.BlockNonce{}, // PoW specific
|
||||
"sha3Uncles": ethtypes.EmptyUncleHash, // No uncles in Tendermint
|
||||
"logsBloom": bloom,
|
||||
|
Loading…
Reference in New Issue
Block a user