Skip to content

Remove reqSigs from output of decoderawtransaction and other RPCs #20102

@sanket1729

Description

@sanket1729

IRC logs

sanket1729: How can decoderawtransaction RPC know reqSigs if the output scriptpubkey is p2sh/p2wsh? I think it is returning 1 everytime.
sipa: sanket1729: it only works for bare multisig
sipa: we should probably just remove it

The output parameter for reqSigs is confusing as it outputs 1 for all scripts but bare multisig in the scriptpubkey. Considering the limited applicability of reqSigs and (slightly) confusing output(1) in almost all cases, I think it is best if we remove it.

I don't have the bandwidth to tackle this, so opening up the issue for book-keeping. I also think this is a good first issue for new contributors if there are no concept NACKs.

Affected RPCs:

  • gettxout

  • decodescript

  • decoderawtransaction

  • getrawtransaction

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