good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 4a231cd9 authored by Martin Holst Swende's avatar Martin Holst Swende Committed by GitHub
Browse files

internal/ethapi: return non-null "number" for pending block (#20616)

Fixes: #20587, ethereum/web3.py#1572
parent 976a0f55
No related branches found
No related tags found
No related merge requests found
......@@ -642,7 +642,7 @@ func (s *PublicBlockChainAPI) GetBlockByNumber(ctx context.Context, number rpc.B
response, err := s.rpcMarshalBlock(block, true, fullTx)
if err == nil && number == rpc.PendingBlockNumber {
// Pending blocks need to nil out a few fields
for _, field := range []string{"hash", "nonce", "miner", "number"} {
for _, field := range []string{"hash", "nonce", "miner"} {
response[field] = nil
}
}
......
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