-
Notifications
You must be signed in to change notification settings - Fork 36.2k
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
[wallet] Restore ability to list incoming transactions by label #14411
Conversation
Is this for backport to 0.17.1? While not necessary, I believe it would simplify upgrade from 0.17.1+ to 0.18.0, because 0.17.1 could be used without |
I think it'd be reasonable to backport this, since it's a small change that restores a removed feature. But I think it won't cherry-pick cleanly because #14023 was merged since the 0.17 branch. @Saicere originally reported the issue so they might be able to say whether there's a benefit to backporting. |
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, 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. |
As far as I am concerned, it's not really a big deal whether or not it's backported to the 0.17 branch as long as it's in before accounts are removed entirely. If you were using accounts in your application, you are probably running 0.17 with |
ACK 8fcb765 |
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.
Concept ACK.
Concept ACK. For completeness, this functionality was hidden behind a deprecation switch in #12953 (based on #11497). The functionality was marked deprecated in #5575. Apologies - it was my oversight that this functionality got dropped. I'm happy to backport this to V0.17 once this gets merged. I aim to review this week. |
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.
Tested ACK 8fcb765 with a couple of nits.
@MarcoFalke - I'll go ahead and open a PR for backporting. A couple of questions:
- does the backport need release notes?
- if we add release notes for the backport, do we also need release notes here?
We assume the reader goes through the release notes for each release, so it should be sufficient to only mention on the 0.17. branch. |
Backport is #14441. PR numbering was totally intentional. |
8fcb765
to
fa7fae5
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.
Added 1 commit 8fcb765 -> 665d00f (pr/list-label.1 -> pr/list-label.2, compare) with suggested fixes.
Squashed 665d00f -> fa7fae5 (pr/list-label.2 -> pr/list-label.3)
Updated fa7fae5 -> 4deba4c (pr/list-label.3 -> pr/list-label.4) with release notes changes to reflect the intent to backport this to 0.17.1
fa7fae5
to
4deba4c
Compare
ACK 4deba4c |
The release note should be removed from this PR (assuming #14441 is merged) |
4deba4c
to
7cbe74f
Compare
Updated 4deba4c -> 7cbe74f (pr/list-label.4 -> pr/list-label.5) removing release notes and changing whitespace as suggested. |
Very nitty comment; it feels like this functionality is closer to |
|
It'd be good to improve listreceivedbylabel. But filtering by label in You could maybe say that |
src/wallet/rpcwallet.cpp
Outdated
@@ -1352,10 +1356,12 @@ UniValue listtransactions(const JSONRPCRequest& request) | |||
|
|||
if (request.fHelp || request.params.size() > 4) | |||
throw std::runtime_error( | |||
"listtransactions (dummy count skip include_watchonly)\n" | |||
"listtransactions ( label count skip include_watchonly )\n" |
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.
From the documentation below, label is a string, so should be surrounded by quotation marks in the oneline doc.
"listtransactions ( label count skip include_watchonly )\n" | |
"listtransactions ( \"label\" count skip include_watchonly )\n" |
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.
re: #14411 (comment)
From the documentation below, label is a string, so should be surrounded by quotation marks in the oneline doc.
Done in rebase.
This change partially reverts bitcoin#13075 and bitcoin#14023. Fixes bitcoin#14382
Suggested by MeshCollider <dobsonsa68@gmail.com> in bitcoin#14411 (comment)
671d8ee
to
ae81320
Compare
ae81320
to
da427db
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.
Rebased 671d8ee -> da427db (pr/list-label.6 -> pr/list-label.7) due to conflict with #14720
src/wallet/rpcwallet.cpp
Outdated
@@ -1352,10 +1356,12 @@ UniValue listtransactions(const JSONRPCRequest& request) | |||
|
|||
if (request.fHelp || request.params.size() > 4) | |||
throw std::runtime_error( | |||
"listtransactions (dummy count skip include_watchonly)\n" | |||
"listtransactions ( label count skip include_watchonly )\n" |
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.
re: #14411 (comment)
From the documentation below, label is a string, so should be surrounded by quotation marks in the oneline doc.
Done in rebase.
…by label da427db Rename ListTransactions filter variable (Russell Yanofsky) 65b740f [wallet] Restore ability to list incoming transactions by label (Russell Yanofsky) Pull request description: This change partially reverts #13075 and #14023. Fixes #14382 Tree-SHA512: 8c4e56104b3a45784cdc06bae8e5facdfff04fe3545b63a35e0ec2e440a41b79d84833ca4c4e728d8af7ebb8a519303a9eda7bee4bbfb92bd50c58587a33eb30
utACK da427db |
Suggested by MeshCollider <dobsonsa68@gmail.com> in bitcoin#14411 (comment)
…by label Summary: da427dbd48 Rename ListTransactions filter variable (Russell Yanofsky) 65b740f92b [wallet] Restore ability to list incoming transactions by label (Russell Yanofsky) Pull request description: This change partially reverts #13075 and #14023. Fixes #14382 Tree-SHA512: 8c4e56104b3a45784cdc06bae8e5facdfff04fe3545b63a35e0ec2e440a41b79d84833ca4c4e728d8af7ebb8a519303a9eda7bee4bbfb92bd50c58587a33eb30 Backport of Core [[bitcoin/bitcoin#14411 | PR14411]] Addresses concern raised #354 Test Plan: ninja check ninja check-functional ./bitcoind ./bitcoin-cli help listtransactions Verify changes to help text. Reviewers: O1 Bitcoin ABC, #bitcoin_abc, jasonbcox Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, jasonbcox Differential Revision: https://reviews.bitcoinabc.org/D5507
…by label Summary: da427dbd48 Rename ListTransactions filter variable (Russell Yanofsky) 65b740f92b [wallet] Restore ability to list incoming transactions by label (Russell Yanofsky) Pull request description: This change partially reverts #13075 and #14023. Fixes #14382 Tree-SHA512: 8c4e56104b3a45784cdc06bae8e5facdfff04fe3545b63a35e0ec2e440a41b79d84833ca4c4e728d8af7ebb8a519303a9eda7bee4bbfb92bd50c58587a33eb30 Backport of Core [[bitcoin/bitcoin#14411 | PR14411]] Addresses concern raised Bitcoin-ABC#354 Test Plan: ninja check ninja check-functional ./bitcoind ./bitcoin-cli help listtransactions Verify changes to help text. Reviewers: O1 Bitcoin ABC, #bitcoin_abc, jasonbcox Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, jasonbcox Differential Revision: https://reviews.bitcoinabc.org/D5507
… incoming transactions by label 89306ab [wallet] Restore ability to list incoming transactions by label (Russell Yanofsky) Pull request description: Backport of PR bitcoin#14411 to v0.17. This change partially reverts bitcoin#13075 and bitcoin#14023. Fixes bitcoin#14382 Tree-SHA512: 1f8300e1a79e826cd706561265b8788deef505fa510be1a76ed9a62e5fca37cf6a741423ac0e5de2a36d6e8b9f25f141885455aacacbbf6474814e6eae406a27
… incoming transactions by label 89306ab [wallet] Restore ability to list incoming transactions by label (Russell Yanofsky) Pull request description: Backport of PR bitcoin#14411 to v0.17. This change partially reverts bitcoin#13075 and bitcoin#14023. Fixes bitcoin#14382 Tree-SHA512: 1f8300e1a79e826cd706561265b8788deef505fa510be1a76ed9a62e5fca37cf6a741423ac0e5de2a36d6e8b9f25f141885455aacacbbf6474814e6eae406a27
…ctions by label da427db Rename ListTransactions filter variable (Russell Yanofsky) 65b740f [wallet] Restore ability to list incoming transactions by label (Russell Yanofsky) Pull request description: This change partially reverts bitcoin#13075 and bitcoin#14023. Fixes bitcoin#14382 Tree-SHA512: 8c4e56104b3a45784cdc06bae8e5facdfff04fe3545b63a35e0ec2e440a41b79d84833ca4c4e728d8af7ebb8a519303a9eda7bee4bbfb92bd50c58587a33eb30
…ctions by label da427db Rename ListTransactions filter variable (Russell Yanofsky) 65b740f [wallet] Restore ability to list incoming transactions by label (Russell Yanofsky) Pull request description: This change partially reverts bitcoin#13075 and bitcoin#14023. Fixes bitcoin#14382 Tree-SHA512: 8c4e56104b3a45784cdc06bae8e5facdfff04fe3545b63a35e0ec2e440a41b79d84833ca4c4e728d8af7ebb8a519303a9eda7bee4bbfb92bd50c58587a33eb30
Backport bitcoin#14023, bitcoin#13825, bitcoin#14411 (and revert bitcoin#14441)
…ctions by label da427db Rename ListTransactions filter variable (Russell Yanofsky) 65b740f [wallet] Restore ability to list incoming transactions by label (Russell Yanofsky) Pull request description: This change partially reverts bitcoin#13075 and bitcoin#14023. Fixes bitcoin#14382 Tree-SHA512: 8c4e56104b3a45784cdc06bae8e5facdfff04fe3545b63a35e0ec2e440a41b79d84833ca4c4e728d8af7ebb8a519303a9eda7bee4bbfb92bd50c58587a33eb30
… incoming transactions by label 89306ab [wallet] Restore ability to list incoming transactions by label (Russell Yanofsky) Pull request description: Backport of PR bitcoin#14411 to v0.17. This change partially reverts bitcoin#13075 and bitcoin#14023. Fixes bitcoin#14382 Tree-SHA512: 1f8300e1a79e826cd706561265b8788deef505fa510be1a76ed9a62e5fca37cf6a741423ac0e5de2a36d6e8b9f25f141885455aacacbbf6474814e6eae406a27
…ctions by label da427db Rename ListTransactions filter variable (Russell Yanofsky) 65b740f [wallet] Restore ability to list incoming transactions by label (Russell Yanofsky) Pull request description: This change partially reverts bitcoin#13075 and bitcoin#14023. Fixes bitcoin#14382 Tree-SHA512: 8c4e56104b3a45784cdc06bae8e5facdfff04fe3545b63a35e0ec2e440a41b79d84833ca4c4e728d8af7ebb8a519303a9eda7bee4bbfb92bd50c58587a33eb30
This change partially reverts #13075 and #14023.
Fixes #14382