swapper-org / NodeChain

Nodechain is a service that allows you to create nodes on a blockchain and connect to them natively through APIs. The goal is to allow the user to build their own nodes natively without having to rely on external services.
MIT License
7 stars 5 forks source link

getBlockByNumber scheme is not working on eth mainnet #120

Closed phoenix-web3 closed 2 years ago

phoenix-web3 commented 2 years ago

Issue

[INFO][2022-03-14 12:19:25.861504] Validating JSON schema with eth/rpcschemas/getblockbynumber_response.json
[ERROR][2022-03-14 12:19:25.864671] Error validation payload with schema: '0xe1dd2f9c957e53a4f5ec148dc73c016b334938def59a68294cc2c3a647bde935' is not of type 'object'

Failed validating 'type' in schema['properties']['uncles']['items']:
    {'properties': {'blockHash': {'type': 'string'},
                    'blockNumber': {'type': 'string'},
                    'from': {'type': 'string'},
                    'gas': {'type': 'string'},
                    'gasPrice': {'type': 'string'},
                    'hash': {'type': 'string'},
                    'input': {'type': 'string'},
                    'nonce': {'type': 'string'},
                    'r': {'type': 'string'},
                    's': {'type': 'string'},
                    'to': {'type': ['string', 'null']},
                    'transactionIndex': {'type': 'string'},
                    'v': {'type': 'string'},
                    'value': {'type': 'string'}},
     'type': 'object'}

On instance['uncles'][0]:
    '0xe1dd2f9c957e53a4f5ec148dc73c016b334938def59a68294cc2c3a647bde935'
[ERROR][2022-03-14 12:19:25.864768] Returning RPC error in error handler {'id': 1609070896412, 'jsonrpc': '2.0', 'error': {'code': 400, 'message': "'0xe1dd2f9c957e53a4f5ec148dc73c016b334938def59a68294cc2c3a647bde935' is not of type 'object'"}}