|
|
@@ -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
|
|
|
}
|
|
|
}
|