Merge pull request #3717 from tranvictor/master

internal/ethapi: return logsBloom for pending block
This commit is contained in:
Péter Szilágyi 2017-02-27 18:11:11 +02:00 committed by GitHub
commit fc97c7a38d
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ func (s *PublicBlockChainAPI) GetBlockByNumber(ctx context.Context, blockNr rpc.
response, err := s.rpcOutputBlock(block, true, fullTx)
if err == nil && blockNr == rpc.PendingBlockNumber {
// 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
}
}