forked from cerc-io/plugeth
internal/ethapi: fixes #2648, returns logsBloom for pending block
This commit is contained in:
parent
e8b3e22612
commit
a624ce69f7
@ -451,7 +451,7 @@ func (s *PublicBlockChainAPI) GetBlockByNumber(ctx context.Context, blockNr rpc.
|
|||||||
response, err := s.rpcOutputBlock(block, true, fullTx)
|
response, err := s.rpcOutputBlock(block, true, fullTx)
|
||||||
if err == nil && blockNr == rpc.PendingBlockNumber {
|
if err == nil && blockNr == rpc.PendingBlockNumber {
|
||||||
// Pending blocks need to nil out a few fields
|
// Pending blocks need to nil out a few fields
|
||||||
for _, field := range []string{"hash", "nonce", "logsBloom", "miner"} {
|
for _, field := range []string{"hash", "nonce", "miner"} {
|
||||||
response[field] = nil
|
response[field] = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user