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.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
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.
Nice cleanup. utACK.
3357 | @@ -3358,62 +3358,6 @@ static UniValue bumpfee(const JSONRPCRequest& request) 3358 | return result; 3359 | } 3360 | 3361 | -UniValue generate(const JSONRPCRequest& request)
I expect you can also remove the #include <rpc/mining.h> include from this file.
Done
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
Rather than change this file around, can you just revert it to how it was pre-commit c9f02955b2e9062808a9455c4ee7d52cf401eef5.
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.
Why WIP? That seems more appropriate for more experimental code. This PR is already tagged 0.19 so that should be clear enough.
Tagging 0.19 is fine. Just as long as the maintainers are aware that this shouldn't be merged prior to the branch split.
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::Chainclass no longer needs to have agenerateBlocksmethod 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.
@ryanofsky I removed that comment
utACK 8bb3e4c487500a580e3e18791b1f4e7dcdd35442, looks good to merge after the branch
GetScriptForMining is unused after the removal of generate.
I suggest getting rid of it! :-)
ACK
Milestone
0.19.0