-
Notifications
You must be signed in to change notification settings - Fork 37.7k
QT: bump fee returns PSBT on clipboard for watchonly-only wallets #17492
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
Conversation
Need to change the "Send" button text to whatever the parent PR is doing |
Concept ACK |
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsNo conflicts as of last run. |
Concept ACK. Linter complains about circular dependency. |
@Sjors appears to be due to the forward declaration of If my reading is correct I propose to add this particular path to the exception list in lieu of a larger refactor which should get rid of both the exceptions: |
1cfd90c
to
b01be8e
Compare
Removed the circular dependency(and removed a whitelisted one). |
I'll rebase onto master once #17513 (comment) is merged |
b01be8e
to
6c81f47
Compare
rebased onto master, split up into two commits for less conflict with #16373 |
6c81f47
to
e3b19d8
Compare
rebased and ready for review now that RPC-version of this is merged |
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.
Code review ACK e3b19d8 |
Code review ACK e3b19d8, nits/nice-to-haves:
|
At the risk of invalidating 3 ACKs, I pushed a commit that converts the asserts to error message box alert instead. |
Thanks, code review ACK 267c77f. |
Concept ACK on using |
Oh, indeed, there should be a "return false;" after the messagebox. This is what you get for making reasonable changes in response to review, Greg. :-( |
267c77f
to
3c30d71
Compare
fixed :) |
utACK 3c30d71 |
code review ACK 3c30d71 |
ACK 3c30d71 nit: squash, but 3 ACKs, so meh. |
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.
We now have essentially the same code in the bumpfee RPC, in the GUI when drafting a transaction, and now here when bumping in the GUI too. It would be nice to consolidate it a bit. If you want to leave it to a follow-up though I am happy to merge this with the current ACKs.
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.
Correct me if I'm wrong but I see 3 things that should be addressed later:
bumpFee
should not be in the wallet model - could follow same approach asWalletControllerActivity
- because IMO it's wrong to open message boxes (any GUI change) or copy to clipboard from a model class;bumpFee
should be asynchronous - 1. above would help here - if from the GUI thread we hit cs_main or cs_wallet then that's bad;- we keep adding nested event loops with QMessageBox helper functions - again 1. would help here.
@meshcollider I'm going to claim ignorance on how to best structure QT code and ask you merge this as-is. Sorry! |
Code review ACK 3c30d71. I'll address my concerns in a follow up. |
Given the 4 ACKs and self-confessed Qt ignorance, I'm going to merge this. Will open an issue to capture all the items that need addressing as followup. |
…ly wallets 3c30d71 QT: Change bumpFee asserts to simple error message (Gregory Sanders) e3b19d8 QT: bump fee returns PSBT on clipboard for watchonly-only wallets (Gregory Sanders) Pull request description: Very small set of changes to support PSBT-based fee bumping on watchonly wallets in QT. quasi-companion to #16373 ACKs for top commit: gwillen: code review ACK 3c30d71 promag: Code review ACK 3c30d71. Sjors: utACK 3c30d71 achow101: ACK 3c30d71 Tree-SHA512: 7a706141e46d7fd0ad513a08a96c16f2e7e531427a6776b689362f82e32cbd9d4b7eeb98f6936aa3f9347d23ccc94128516fcffa695efacd9cac43606ea916e2
…only-only wallets 3c30d71 QT: Change bumpFee asserts to simple error message (Gregory Sanders) e3b19d8 QT: bump fee returns PSBT on clipboard for watchonly-only wallets (Gregory Sanders) Pull request description: Very small set of changes to support PSBT-based fee bumping on watchonly wallets in QT. quasi-companion to bitcoin#16373 ACKs for top commit: gwillen: code review ACK 3c30d71 promag: Code review ACK 3c30d71. Sjors: utACK 3c30d71 achow101: ACK 3c30d71 Tree-SHA512: 7a706141e46d7fd0ad513a08a96c16f2e7e531427a6776b689362f82e32cbd9d4b7eeb98f6936aa3f9347d23ccc94128516fcffa695efacd9cac43606ea916e2
…only-only wallets 3c30d71 QT: Change bumpFee asserts to simple error message (Gregory Sanders) e3b19d8 QT: bump fee returns PSBT on clipboard for watchonly-only wallets (Gregory Sanders) Pull request description: Very small set of changes to support PSBT-based fee bumping on watchonly wallets in QT. quasi-companion to bitcoin#16373 ACKs for top commit: gwillen: code review ACK 3c30d71 promag: Code review ACK 3c30d71. Sjors: utACK 3c30d71 achow101: ACK 3c30d71 Tree-SHA512: 7a706141e46d7fd0ad513a08a96c16f2e7e531427a6776b689362f82e32cbd9d4b7eeb98f6936aa3f9347d23ccc94128516fcffa695efacd9cac43606ea916e2
Very small set of changes to support PSBT-based fee bumping on watchonly wallets in QT.
quasi-companion to #16373