Skip to content

bug: validation of block hash #197

Description

@Boreas09

In Infura's rpc response, i tried to enter a block hash as a block number. It gave an error as

block hash : "0x70410ed96ff95e62c484444431302b7531d2bf9633758e682aab567407484f9a"

{ "jsonrpc": "2.0", "id": 1, "error": { "code": -32602, "message": "invalid argument 0: hex number > 64 bits" } }

I tried this one below and gave a different response.

block hash: "0x07410ed96ff95e62c484444431302b7531d2bf9633758e682aab567407484f9a"

{ "jsonrpc": "2.0", "id": 1, "error": { "code": -32602, "message": "invalid argument 0: hex number with leading zero digits" } }

But in rosetta's block number validator is not giving any errors for both of block numbers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions