Skip to content

Conversation

@Sjors
Copy link
Member

@Sjors Sjors commented Feb 27, 2019

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.

@fanquake fanquake added this to the 0.19.0 milestone Feb 27, 2019
@Sjors Sjors force-pushed the 2019/02/rpc-generate-remove branch 3 times, most recently from 63477e5 to 5e0d4fb Compare February 27, 2019 10:02
@DrahtBot
Copy link
Contributor

DrahtBot commented Feb 27, 2019

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #15150 (gui: Show wallet selector on console window if there are wallets loaded by promag)

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.

@laanwj
Copy link
Member

laanwj commented Feb 27, 2019

Nice cleanup. utACK.

Copy link
Contributor

@jnewbery jnewbery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be marked as WIP and not merged before the 0.18 branch split.

I agree that this should go in before #15492.

"""Test deprecation of RPC calls."""
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import assert_raises_rpc_error
# from test_framework.util import assert_raises_rpc_error
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than change this file around, can you just revert it to how it was pre-commit c9f0295.

Copy link
Member Author

@Sjors Sjors Feb 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Sjors Sjors force-pushed the 2019/02/rpc-generate-remove branch from 5e0d4fb to 8bb3e4c Compare February 27, 2019 16:41
@Sjors
Copy link
Member Author

Sjors commented Feb 27, 2019

Why WIP? That seems more appropriate for more experimental code. This PR is already tagged 0.19 so that should be clear enough.

@jnewbery
Copy link
Contributor

Tagging 0.19 is fine. Just as long as the maintainers are aware that this shouldn't be merged prior to the branch split.

@ryanofsky
Copy link
Contributor

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 a generateBlocks 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.

@Sjors
Copy link
Member Author

Sjors commented Feb 27, 2019

@ryanofsky I removed that comment

Copy link
Contributor

@ryanofsky ryanofsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 8bb3e4c, looks good to merge after the branch

@practicalswift
Copy link
Contributor

GetScriptForMining is unused after the removal of generate.

I suggest getting rid of it! :-)

maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Mar 2, 2019
07cae52 [wallet] remove unused GetScriptForMining (Sjors Provoost)
8bb3e4c [rpc] remove deprecated generate method (Sjors Provoost)

Pull request description:

  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`.

Tree-SHA512: 9e5e913b59f3e18440b2b7b356124c7b87ad19f81a1ab6ada06a6c396b84e734895465f569296f1ba8c12abf74863bab5fd77765c9e806c239713aa83a59485f
@maflcko
Copy link
Member

maflcko commented Mar 2, 2019

ACK

@maflcko maflcko merged commit 07cae52 into bitcoin:master Mar 2, 2019
@Sjors Sjors deleted the 2019/02/rpc-generate-remove branch March 2, 2019 14:59
jasonbcox pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Jun 30, 2020
Summary:
[rpc] remove deprecated generate method
bitcoin/bitcoin@8bb3e4c

[wallet] remove unused GetScriptForMining
bitcoin/bitcoin@07cae52

---

Update: considering this is a testing only RPC and it is blocking a bunch of current stuff (and part of a PR going back to D6269), discussion has been mostly in favor of shipping this a bit over a month ahead of the normal deprecation schedule.

Backport of Core [[bitcoin/bitcoin#15492 | PR15492]]

Test Plan:
  ninja check-all

Reviewers: #bitcoin_abc, Fabien, deadalnix

Reviewed By: #bitcoin_abc, Fabien, deadalnix

Subscribers: deadalnix, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D6710
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Sep 8, 2021
07cae52 [wallet] remove unused GetScriptForMining (Sjors Provoost)
8bb3e4c [rpc] remove deprecated generate method (Sjors Provoost)

Pull request description:

  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`.

Tree-SHA512: 9e5e913b59f3e18440b2b7b356124c7b87ad19f81a1ab6ada06a6c396b84e734895465f569296f1ba8c12abf74863bab5fd77765c9e806c239713aa83a59485f
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this pull request Nov 13, 2021
07cae52 [wallet] remove unused GetScriptForMining (Sjors Provoost)
8bb3e4c [rpc] remove deprecated generate method (Sjors Provoost)

Pull request description:

  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`.

Tree-SHA512: 9e5e913b59f3e18440b2b7b356124c7b87ad19f81a1ab6ada06a6c396b84e734895465f569296f1ba8c12abf74863bab5fd77765c9e806c239713aa83a59485f
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this pull request Nov 13, 2021
07cae52 [wallet] remove unused GetScriptForMining (Sjors Provoost)
8bb3e4c [rpc] remove deprecated generate method (Sjors Provoost)

Pull request description:

  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`.

Tree-SHA512: 9e5e913b59f3e18440b2b7b356124c7b87ad19f81a1ab6ada06a6c396b84e734895465f569296f1ba8c12abf74863bab5fd77765c9e806c239713aa83a59485f
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this pull request Nov 13, 2021
07cae52 [wallet] remove unused GetScriptForMining (Sjors Provoost)
8bb3e4c [rpc] remove deprecated generate method (Sjors Provoost)

Pull request description:

  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`.

Tree-SHA512: 9e5e913b59f3e18440b2b7b356124c7b87ad19f81a1ab6ada06a6c396b84e734895465f569296f1ba8c12abf74863bab5fd77765c9e806c239713aa83a59485f
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this pull request Nov 15, 2021
07cae52 [wallet] remove unused GetScriptForMining (Sjors Provoost)
8bb3e4c [rpc] remove deprecated generate method (Sjors Provoost)

Pull request description:

  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`.

Tree-SHA512: 9e5e913b59f3e18440b2b7b356124c7b87ad19f81a1ab6ada06a6c396b84e734895465f569296f1ba8c12abf74863bab5fd77765c9e806c239713aa83a59485f
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this pull request Nov 15, 2021
07cae52 [wallet] remove unused GetScriptForMining (Sjors Provoost)
8bb3e4c [rpc] remove deprecated generate method (Sjors Provoost)

Pull request description:

  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`.

Tree-SHA512: 9e5e913b59f3e18440b2b7b356124c7b87ad19f81a1ab6ada06a6c396b84e734895465f569296f1ba8c12abf74863bab5fd77765c9e806c239713aa83a59485f
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this pull request Nov 16, 2021
07cae52 [wallet] remove unused GetScriptForMining (Sjors Provoost)
8bb3e4c [rpc] remove deprecated generate method (Sjors Provoost)

Pull request description:

  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`.

Tree-SHA512: 9e5e913b59f3e18440b2b7b356124c7b87ad19f81a1ab6ada06a6c396b84e734895465f569296f1ba8c12abf74863bab5fd77765c9e806c239713aa83a59485f
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this pull request Nov 22, 2021
07cae52 [wallet] remove unused GetScriptForMining (Sjors Provoost)
8bb3e4c [rpc] remove deprecated generate method (Sjors Provoost)

Pull request description:

  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`.

Tree-SHA512: 9e5e913b59f3e18440b2b7b356124c7b87ad19f81a1ab6ada06a6c396b84e734895465f569296f1ba8c12abf74863bab5fd77765c9e806c239713aa83a59485f
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants