As announced in v0.18, the wallet generate rpc method is deprecated and will be fully removed in v0.19.
Clients should transition to using the node rpc method generatetoaddress
.
As announced in v0.18, the wallet generate rpc method is deprecated and will be fully removed in v0.19.
Clients should transition to using the node rpc method generatetoaddress
.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
3357@@ -3358,62 +3358,6 @@ static UniValue bumpfee(const JSONRPCRequest& request)
3358 return result;
3359 }
3360
3361-UniValue generate(const JSONRPCRequest& request)
#include <rpc/mining.h>
include from this file.
3@@ -4,13 +4,13 @@
4 # file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 """Test deprecation of RPC calls."""
6 from test_framework.test_framework import BitcoinTestFramework
7-from test_framework.util import assert_raises_rpc_error
8+# from test_framework.util import assert_raises_rpc_error
Main reason for changing this file around is improving documentation; generate
allows a much simpler example than createmultisig
.
Update: removed the skip_test_if_missing_module
bit, since that’s wallet specific.
This PR seems reasonable, but I would like to remove:
Removal helps with separating the wallet from the node in #15288
from the PR description. I don’t think this is true in any significant sense. If there really is a need to relate this PR to #15288, you could say:
Removal means that the
interfaces::Chain
class no longer needs to have agenerateBlocks
method added in #15288
I think there is some confusion in the #15288 discussion that generateBlocks
method requires additional makefile changes that other Chain
methods don’t require, but this is not true. The only reason makefile changes are part of the generateBlocks
commit is because that commit comes first, so all the later commits just piggyback off of it.
GetScriptForMining
is unused after the removal of generate
.
I suggest getting rid of it! :-)
Sjors
DrahtBot
laanwj
jnewbery
ryanofsky
practicalswift
MarcoFalke
Labels
RPC/REST/ZMQ
Milestone
0.19.0