You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge bitcoin/bitcoin#22650: Remove -deprecatedrpc=addresses flag and corresponding code/logic
43cd6b8 doc: add release notes for removal of the -deprecatedrpc=addresses flag (Michael Dietz)
2b1fdc2 refactor: minor styling, prefer snake case and same line if (Michael Dietz)
d64deac refactor: share logic between ScriptPubKeyToUniv and ScriptToUniv (Michael Dietz)
8721638 rpc: remove deprecated addresses and reqSigs from rpc outputs (Michael Dietz)
Pull request description:
Resolves #21797 now that we've branched-off to v23 ("addresses" and "reqSigs" deprecated) "ExtractDestinations" should be removed.
`-deprecatedrpc=addresses` was initially added in this PR #20286 (which resolved the original issue #20102).
Some chunks of code and logic are no longer used/necessary with the removal of this, and therefore some minor refactoring is done in this PR as well (separated commits)
ACKs for top commit:
MarcoFalke:
re-ACK 43cd6b8 🐉
meshcollider:
Code review ACK 43cd6b8
jonatack:
ACK 43cd6b8 per `git range-diff a9d0cec 92dc5e9 43cd6b8`, also rebased to latest master, debug built + quick re-review of each commit to bring back context, and ran tests locally at the final commit
Tree-SHA512: fba83495e396d3c06f0dcf49292f14f4aa6b68fa758f0503941fade1a6e7271cda8378e2734af1faea550d1b43c85a36c52ebcc9dec0732936f9233b4b97901c
{RPCResult::Type::NUM, "reqSigs", /* optional */true, "(DEPRECATED, returned only if config option -deprecatedrpc=addresses is passed) Number of required signatures"},
1260
1259
{RPCResult::Type::STR, "type", "The type, eg pubkeyhash"},
1261
-
{RPCResult::Type::STR, "address", /* optional */true, "bitcoin address (only if a well-defined address exists)"},
1262
-
{RPCResult::Type::ARR, "addresses", /* optional */true, "(DEPRECATED, returned only if config option -deprecatedrpc=addresses is passed) Array of bitcoin addresses",
{RPCResult::Type::NUM, "reqSigs", /* optional */true, "(DEPRECATED, returned only if config option -deprecatedrpc=addresses is passed) Number of required signatures"},
135
134
{RPCResult::Type::STR, "type", "The type, eg 'pubkeyhash'"},
136
-
{RPCResult::Type::STR, "address", /* optional */true, "bitcoin address (only if a well-defined address exists)"},
137
-
{RPCResult::Type::ARR, "addresses", /* optional */true, "(DEPRECATED, returned only if config option -deprecatedrpc=addresses is passed) Array of bitcoin addresses",
{RPCResult::Type::NUM, "reqSigs", /* optional */true, "(DEPRECATED, returned only if config option -deprecatedrpc=addresses is passed) Number of required signatures"},
499
493
{RPCResult::Type::STR, "type", "The type, eg 'pubkeyhash'"},
500
-
{RPCResult::Type::STR, "address", /* optional */true, "bitcoin address (only if a well-defined address exists)"},
501
-
{RPCResult::Type::ARR, "addresses", /* optional */true, "(DEPRECATED, returned only if config option -deprecatedrpc=addresses is passed) Array of bitcoin addresses",
{RPCResult::Type::STR, "asm", "Script public key"},
556
546
{RPCResult::Type::STR, "type", "The output type (e.g. "+GetAllOutputTypes()+")"},
557
-
{RPCResult::Type::STR, "address", /* optional */true, "bitcoin address (only if a well-defined address exists)"},
558
-
{RPCResult::Type::NUM, "reqSigs", /* optional */true, "(DEPRECATED, returned only if config option -deprecatedrpc=addresses is passed) Number of required signatures"},
559
-
{RPCResult::Type::ARR, "addresses", /* optional */true, "(DEPRECATED, returned only if config option -deprecatedrpc=addresses is passed) Array of bitcoin addresses",
{RPCResult::Type::STR, "address", /* optional */true, "The Bitcoin address (only if a well-defined address exists)"},
563
548
{RPCResult::Type::STR, "p2sh", /* optional */true, "address of P2SH script wrapping this redeem script (not returned if the script is already a P2SH)"},
564
549
{RPCResult::Type::OBJ, "segwit", /* optional */true, "Result of a witness script public key wrapping this redeem script (not returned if the script is a P2SH or witness)",
565
550
{
566
551
{RPCResult::Type::STR, "asm", "String representation of the script public key"},
567
552
{RPCResult::Type::STR_HEX, "hex", "Hex string of the script public key"},
568
553
{RPCResult::Type::STR, "type", "The type of the script public key (e.g. witness_v0_keyhash or witness_v0_scripthash)"},
569
-
{RPCResult::Type::STR, "address", /* optional */true, "bitcoin address (only if a well-defined address exists)"},
570
-
{RPCResult::Type::NUM, "reqSigs", /* optional */true, "(DEPRECATED, returned only if config option -deprecatedrpc=addresses is passed) Number of required signatures"},
571
-
{RPCResult::Type::ARR, "addresses", /* optional */true, "(DEPRECATED, returned only if config option -deprecatedrpc=addresses is passed) Array of bitcoin addresses",
0 commit comments