Skip to content

Remove resendwallettransactions RPC method - #15680

Merged
maflcko merged 2 commits into
bitcoin:masterfrom
jnewbery:2019_03_remove_resendwallettransactions
Apr 2, 2019
Merged

maflcko merged 2 commits into
bitcoin:masterfrom
jnewbery:2019_03_remove_resendwallettransactions

Conversation

@jnewbery

@jnewbery jnewbery commented Mar 27, 2019 •

Copy link
Copy Markdown
Contributor

Remove resendwallettransactions RPC method

This RPC was added for testing wallet rebroadcasts. Since we now have a real test for wallet rebroadcasts, it's no longer needed.

The call in wallet_basic.py can be removed because wallet_resendwallettransactions.py tests wallet rebroadcast.

@maflcko maflcko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Concept ACK

I wasn't aware that this was a hidden RPC.
Good to finally remove this privacy-footgun

Comment thread src/wallet/wallet.cpp Resolved
@promag

promag commented Mar 27, 2019

Copy link
Copy Markdown
Contributor

Should deprecate first? Or that doesn't apply to hidden RPC?

@DrahtBot

DrahtBot commented Mar 27, 2019 •

Copy link
Copy Markdown
Contributor

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #15632 (Remove ResendWalletTransactions from the Validation Interface by jnewbery)
  • #13756 (wallet: "avoid_reuse" wallet flag for improved privacy by kallewoof)
  • #11413 ([wallet] [rpc] sendtoaddress/sendmany: Add explicit feerate option by kallewoof)

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.

@jnewbery jnewbery changed the title Remove resendwallettransactions RPC method [WIP] Remove resendwallettransactions RPC method Mar 28, 2019
@jnewbery
jnewbery force-pushed the 2019_03_remove_resendwallettransactions branch from f81c814 to 5e7c32b Compare March 28, 2019 16:11
@jnewbery

Copy link
Copy Markdown
Contributor Author

Should deprecate first? Or that doesn't apply to hidden RPC?

This RPC isn't part of the public API so I don't think it needs deprecation. We could raise a JSON RPC exception telling users that transactions are rebroadcast automatically and that they just need to wait.

The feature_pruning.py test was failing with this PR. I got bored of debugging a failing test case that took 30 minutes to run, so I resurrected #10591 here: #15686. That commit removes the resendwallettransactions call from feature_pruning.py.

@jnewbery
jnewbery force-pushed the 2019_03_remove_resendwallettransactions branch from 5e7c32b to 720952a Compare March 28, 2019 16:16
@jnewbery

Copy link
Copy Markdown
Contributor Author

This now depends on #15686. Please review that first.

@promag

promag commented Mar 29, 2019

Copy link
Copy Markdown
Contributor

Should deprecate first? Or that doesn't apply to hidden RPC?

This RPC isn't part of the public API so I don't think it needs deprecation. We could raise a JSON RPC exception telling users that transactions are rebroadcast automatically and that they just need to wait.

Then I think it's fine to just remove it.

@jnewbery
jnewbery force-pushed the 2019_03_remove_resendwallettransactions branch from 720952a to cc6401b Compare March 29, 2019 17:46
@jnewbery jnewbery changed the title [WIP] Remove resendwallettransactions RPC method Remove resendwallettransactions RPC method Mar 29, 2019
@jnewbery

Copy link
Copy Markdown
Contributor Author

Rebased on master and removed the [WIP] tag.

@maflcko

maflcko commented Mar 29, 2019

Copy link
Copy Markdown
Member
./test/functional/wallet_basic.py:10:1: F401 'test_framework.util.sync_mempools' imported but unused

This RPC was added for testing wallet rebroadcasts. Since we now have a
real test for wallet rebroadcasts, it's no longer needed.

The call in wallet_basic.py can be removed because
wallet_resendwallettransactions.py tests wallet rebroadcast.
@jnewbery
jnewbery force-pushed the 2019_03_remove_resendwallettransactions branch 2 times, most recently from e278e9c to a076720 Compare March 29, 2019 21:54
Comment thread src/wallet/wallet.cpp Resolved
@jnewbery
jnewbery force-pushed the 2019_03_remove_resendwallettransactions branch from a076720 to f9b34f7 Compare April 1, 2019 13:29

@maflcko maflcko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

utACK f9b34f7cc2232dfd776885e20230ff3c660c2f7d

Comment thread src/wallet/wallet.cpp Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Untitled png

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed!

This is only called from ResendWalletTransactions(), so bring it inline.
@promag

promag commented Apr 1, 2019

Copy link
Copy Markdown
Contributor

utACK if you make @MarcoFalke happy.

@jnewbery
jnewbery force-pushed the 2019_03_remove_resendwallettransactions branch from f9b34f7 to ea1a2d8 Compare April 1, 2019 15:19
@maflcko

maflcko commented Apr 1, 2019

Copy link
Copy Markdown
Member

re-utACK ea1a2d8

Only whitespace changes since my previous review

@promag

promag commented Apr 2, 2019

Copy link
Copy Markdown
Contributor

utACK ea1a2d8.

@maflcko
maflcko merged commit ea1a2d8 into bitcoin:master Apr 2, 2019
maflcko pushed a commit that referenced this pull request Apr 2, 2019
ea1a2d8 [wallet] Remove ResendWalletTransactionsBefore (John Newbery)
f516245 [rpc] remove resendwallettransactions RPC (John Newbery)

Pull request description:

  Remove resendwallettransactions RPC method

  This RPC was added for testing wallet rebroadcasts. Since we now have a real test for wallet rebroadcasts, it's no longer needed.

  The call in wallet_basic.py can be removed because wallet_resendwallettransactions.py tests wallet rebroadcast.

ACKs for commit ea1a2d:
  MarcoFalke:
    re-utACK ea1a2d8
  promag:
    utACK ea1a2d8.

Tree-SHA512: 48245d947be1a2d2b8c30d2946105818c454a03b70b63534ecadf2144da64dafe1c9527ea670a5f4d1acd05ccdfc6c9be43ca636ee2ba58a8b7a7b2fc7bc88fd
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request May 5, 2020
Summary:
This RPC was added for testing wallet rebroadcasts. Since we now have a
real test for wallet rebroadcasts, it's no longer needed.

The call in wallet_basic.py can be removed because
wallet_resendwallettransactions.py tests wallet rebroadcast.

bitcoin/bitcoin@f516245

---

This is a partial backport of Core [[bitcoin/bitcoin#15680 | PR15680]]

Test Plan:
  ninja check
  ./test_runner.py wallet_basic

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D5951
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request May 6, 2020
Summary:
This is only called from ResendWalletTransactions(), so bring it inline.

bitcoin/bitcoin@ea1a2d8

---

Depends on D5951

This completes the backport of Core [[bitcoin/bitcoin#15680 | PR15680]]

Test Plan:
  ninja check check-functional

Reviewers: #bitcoin_abc, jasonbcox, deadalnix

Reviewed By: #bitcoin_abc, jasonbcox, deadalnix

Subscribers: jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D5952
kwvg added a commit to kwvg/dash that referenced this pull request Dec 12, 2021
@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.

6 participants