diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index e640a59f07..d54b319bc7 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -711,7 +711,7 @@ func (s *PublicBlockChainAPI) GetBlockByNumber(ctx context.Context, number rpc.B if err == nil { addEthCompatibilityFields(ctx, response, s.b, block) - if s.b.RPCEthCompatibility() && number == rpc.PendingBlockNumber { + if number == rpc.PendingBlockNumber { // Pending blocks need to nil out a few fields for _, field := range []string{"hash", "nonce", "miner"} { response[field] = nil