Skip to content

RPC getblockstats first argument inconsistency #15412

@jonasschnelli

Description

@jonasschnelli

Maybe I'm wrong, but it looks like that the handling of the height/hash union for getblockstats first argument seems inconsistent or wrong.

bitcoin-cli getblockstats 10000 #c5f015 works
bitcoin-cli getblockstats '"<hash>"' #c5f015 works
bitcoin-cli getblockstats <hash> #f03c15 gives "Error parsing JSON"

Ignoring that a '"<hash>"' (simple string) is probably not a valid json text, it seems to be inconsistent with other calls like getblock <hash>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions