提交 fc97c7a3 编写于 作者: P Péter Szilágyi 提交者: GitHub

Merge pull request #3717 from tranvictor/master

internal/ethapi: return logsBloom for pending block
......@@ -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
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册