-
Notifications
You must be signed in to change notification settings - Fork 37.7k
[Wallet] [RPC] Remove deprecated wallet rpc features from bitcoin_server #12490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dec8bd4
to
6f21090
Compare
6f21090
to
47aa910
Compare
rebased |
f43f11c
to
1158feb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 1158febc93707910d783be863aa05c8f6cfedb2f
src/rpc/misc.cpp
Outdated
std::string currentAddress = EncodeDestination(dest); | ||
ret.pushKV("address", currentAddress); | ||
CScript scriptPubKey = GetScriptForDestination(dest); | ||
ret.pushKV("scriptPubKey", HexStr(scriptPubKey.begin(), scriptPubKey.end()));; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: No need for double semicolon?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks. Fixed
1158feb
to
25bf889
Compare
V0.17 has been branched. This is ready for review/merge |
createmultisig() was updated in V0.16 to not use the wallet. Warning text was included to warn the user. Remove that now.
25bf889
to
f7e9e70
Compare
rebased |
re-utACK f7e9e70 |
utACK f7e9e70. |
…ures from bitcoin_server f7e9e70 [rpc] Remove deprecated sigrawtransaction rpc method. (John Newbery) 90c8340 [RPC] Remove warning about wallet addresses in createmultisig() (John Newbery) df905e3 [rpc] Remove deprecated validateaddress usage. (John Newbery) Pull request description: The following rpc features were deprecated in V0.17: - `validateaddress` returning wallet information about an address - `signrawtransaction` This PR fully removes those features. It can be merged once V0.17 has been branched from master. Tree-SHA512: 28293d218cf7e348632081e362f8775f243d091f49aed54c354f017d4a12ae92b87b99f81ee592a1bbf4aebd5d8cd5119278141edde7a0399ff82917ed68b9f6
What was the reasoning behind this? It seems unnecessary. |
@ptyx11 This is part of the separation of the wallet from the node. Those RPCs were node RPCs which involved wallet things, so they needed to be removed. They have been deprecated for at least one major version with replacement RPCs already available. |
Summary: Looks like this was partially done in D3978. Partial backport of Core [[bitcoin/bitcoin#12490 | PR12490]] Test Plan: cmake -GNinja -DBUILD_BITCOIN_WALLET=OFF .. ninja ninja check ninja check-functional ./bitcoind ./bitcoin-cli getnewaddress Verify rpc fails because there is no wallet. Reviewers: O1 Bitcoin ABC, #bitcoin_abc, deadalnix Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, deadalnix Subscribers: deadalnix Differential Revision: https://reviews.bitcoinabc.org/D5520
Summary: Looks like this was partially done in D3978. Partial backport of Core [[bitcoin/bitcoin#12490 | PR12490]] Test Plan: cmake -GNinja -DBUILD_BITCOIN_WALLET=OFF .. ninja ninja check ninja check-functional ./bitcoind ./bitcoin-cli getnewaddress Verify rpc fails because there is no wallet. Reviewers: O1 Bitcoin ABC, #bitcoin_abc, deadalnix Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, deadalnix Subscribers: deadalnix Differential Revision: https://reviews.bitcoinabc.org/D5520
…ures from bitcoin_server f7e9e70 [rpc] Remove deprecated sigrawtransaction rpc method. (John Newbery) 90c8340 [RPC] Remove warning about wallet addresses in createmultisig() (John Newbery) df905e3 [rpc] Remove deprecated validateaddress usage. (John Newbery) Pull request description: The following rpc features were deprecated in V0.17: - `validateaddress` returning wallet information about an address - `signrawtransaction` This PR fully removes those features. It can be merged once V0.17 has been branched from master. Tree-SHA512: 28293d218cf7e348632081e362f8775f243d091f49aed54c354f017d4a12ae92b87b99f81ee592a1bbf4aebd5d8cd5119278141edde7a0399ff82917ed68b9f6
…ures from bitcoin_server f7e9e70 [rpc] Remove deprecated sigrawtransaction rpc method. (John Newbery) 90c8340 [RPC] Remove warning about wallet addresses in createmultisig() (John Newbery) df905e3 [rpc] Remove deprecated validateaddress usage. (John Newbery) Pull request description: The following rpc features were deprecated in V0.17: - `validateaddress` returning wallet information about an address - `signrawtransaction` This PR fully removes those features. It can be merged once V0.17 has been branched from master. Tree-SHA512: 28293d218cf7e348632081e362f8775f243d091f49aed54c354f017d4a12ae92b87b99f81ee592a1bbf4aebd5d8cd5119278141edde7a0399ff82917ed68b9f6
…ures from bitcoin_server (#4380) f7e9e70 [rpc] Remove deprecated sigrawtransaction rpc method. (John Newbery) 90c8340 [RPC] Remove warning about wallet addresses in createmultisig() (John Newbery) df905e3 [rpc] Remove deprecated validateaddress usage. (John Newbery) Pull request description: The following rpc features were deprecated in V0.17: - `validateaddress` returning wallet information about an address - `signrawtransaction` This PR fully removes those features. It can be merged once V0.17 has been branched from master. Tree-SHA512: 28293d218cf7e348632081e362f8775f243d091f49aed54c354f017d4a12ae92b87b99f81ee592a1bbf4aebd5d8cd5119278141edde7a0399ff82917ed68b9f6 Co-authored-by: MarcoFalke <falke.marco@gmail.com>
The following rpc features were deprecated in V0.17:
validateaddress
returning wallet information about an addresssignrawtransaction
This PR fully removes those features. It can be merged once V0.17 has been branched from master.