Skip to content

Commit

Permalink
Merge PR: fill in the address of the block miner (#656)
Browse files Browse the repository at this point in the history
* fill in the address of the block miner

* revert debug code

Co-authored-by: Zhong Qiu <[email protected]>
  • Loading branch information
ylsGit and zhongqiuwood authored Feb 18, 2021
1 parent c04cbf5 commit b0b27b7
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions app/rpc/namespaces/eth/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -700,12 +700,13 @@ func (api *PublicEthereumAPI) GetBlockByNumber(blockNum rpctypes.BlockNumber, fu

return rpctypes.FormatBlock(
tmtypes.Header{
Version: latestBlock.Block.Version,
ChainID: api.clientCtx.ChainID,
Height: height + 1,
Time: time.Unix(0, 0),
LastBlockID: latestBlock.Block.LastBlockID,
ValidatorsHash: latestBlock.Block.NextValidatorsHash,
Version: latestBlock.Block.Version,
ChainID: api.clientCtx.ChainID,
Height: height + 1,
Time: time.Unix(0, 0),
LastBlockID: latestBlock.Block.LastBlockID,
ValidatorsHash: latestBlock.Block.NextValidatorsHash,
ProposerAddress: latestBlock.Block.ProposerAddress,
},
0,
latestBlock.Block.Hash(),
Expand Down

0 comments on commit b0b27b7

Please sign in to comment.