Skip to content

Remove -deprecatedrpc=addresses flag and corresponding code/logic #21797

@mjdietzx

Description

@mjdietzx

The following RPCs: gettxout, getrawtransaction, decoderawtransaction,
decodescript, gettransaction, and REST endpoints: /rest/tx,
/rest/getutxos, /rest/block deprecated the following fields (which are no
longer returned in the responses by default): addresses, reqSigs.
The -deprecatedrpc=addresses flag must be passed for these fields to be
included in the RPC response. This flag/option will be available until v23, at which
point the deprecation will be removed entirely. Note that these fields are attributes of
the scriptPubKey object returned in the RPC response. However, in the response
of decodescript these fields are top-level attributes, and included again as attributes
of the scriptPubKey object.

The original issue #20102 was resolved in this PR #20286, and from v23 ("addresses" and "reqSigs" deprecated) "ExtractDestinations" should be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions