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#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:
Resolvesbitcoin#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 bitcoin#20286 (which resolved the original issue bitcoin#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 a9d0cec92dc5e943cd6b8`, 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"},
1211
1210
{RPCResult::Type::STR_HEX, "type", "The type, eg pubkeyhash"},
1212
1211
{RPCResult::Type::STR, "address", /* optional */true, "Dash address (only if a well-defined address exists)"},
1213
-
{RPCResult::Type::ARR, "addresses", /* optional */true, "(DEPRECATED, returned only if config option -deprecatedrpc=addresses is passed) Array of Dash addresses",
{RPCResult::Type::NUM, "reqSigs", /* optional */true, "(DEPRECATED, returned only if config option -deprecatedrpc=addresses is passed) Number of required signatures"},
182
181
{RPCResult::Type::STR, "type", "The type, eg 'pubkeyhash'"},
183
-
{RPCResult::Type::STR, "address", /* optional */true, "Dash address (only if a well-defined address exists)"},
184
-
{RPCResult::Type::ARR, "addresses", /* optional */true, "(DEPRECATED, returned only if config option -deprecatedrpc=addresses is passed) Array of Dash addresses",
{RPCResult::Type::NUM, "reqSigs", /* optional */true, "(DEPRECATED, returned only if config option -deprecatedrpc=addresses is passed) Number of required signatures"},
767
761
{RPCResult::Type::STR, "type", "The type, eg 'pubkeyhash'"},
768
-
{RPCResult::Type::STR, "address", /* optional */true, "Dash address (only if a well-defined address exists)"},
769
-
{RPCResult::Type::ARR, "addresses", /* optional */true, "(DEPRECATED, returned only if config option -deprecatedrpc=addresses is passed) Array of Dash addresses",
{RPCResult::Type::STR, "asm", "Script public key"},
813
803
{RPCResult::Type::STR, "type", "The output type (e.g. " + GetAllOutputTypes() + ")"},
814
-
{RPCResult::Type::STR, "address", /* optional */true, "Dash address (only if a well-defined address exists)"},
815
-
{RPCResult::Type::NUM, "reqSigs", /* optional */true, "(DEPRECATED, returned only if config option -deprecatedrpc=addresses is passed) Number of required signatures"},
816
-
{RPCResult::Type::ARR, "addresses", /* optional */true, "(DEPRECATED, returned only if config option -deprecatedrpc=addresses is passed) Array of Dash addresses",
0 commit comments