good morning!!!!

Skip to content
Snippets Groups Projects
Commit d381d9a7 authored by Taylor Gerring's avatar Taylor Gerring
Browse files

Return nil for certain fields on eth_getBlockByNumber pending

parent 67d44519
No related branches found
No related tags found
No related merge requests found
......@@ -231,6 +231,13 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
block := api.xeth().EthBlockByNumber(args.BlockNumber)
br := NewBlockRes(block, args.IncludeTxs)
if args.BlockNumber == -2 {
br.BlockHash = nil
br.BlockNumber = nil
br.Miner = nil
br.Nonce = nil
br.LogsBloom = nil
}
*reply = br
case "eth_getTransactionByHash":
args := new(HashArgs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment