-
Notifications
You must be signed in to change notification settings - Fork 37.7k
wallet: Fix -maxtxfee check by moving it to CWallet::CreateTransaction #16322
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
@Sjors you promised a review 😄 |
tACK a2f23b8 This also makes the QT message the same as RPC. Afaik there's no way to reach the |
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.
Maybe revert the docstring in the gui to say "belt-and-suspenders" again?
See https://github.com/bitcoin/bitcoin/pull/16257/files#diff-2e3836af182cfb375329c3463ffd91f8
Looks good, I'll write some tests and send them over in a bit. |
ACK, tested by writing a test: maflcko@9ff66a1 |
Thanks for the
Maybe that is indeed slightly safer than dropping it completely. |
@MarcoFalke great stuff, pulled both commits. |
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsNo conflicts as of last run. |
ACK 9ff66a1 (read code, wrote test case) Show signature and timestampSignature:
Timestamp of file with hash |
Concept ACK |
@meshcollider ping. |
The previous pull was reviewed by @kallewoof @jonasschnelli @laanwj @achow101. Would be helpful to get your eyes on this as well. |
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.
utACK 9ff66a1
Looks good. Was wondering about the two test commits, until I realized author was different.
test/functional/wallet_create_tx.py
Outdated
lambda: self.nodes[0].fundrawtransaction(hexstring=raw_tx), | ||
) | ||
|
||
self.log.info('Check maxtxfee in combination with settxfee'.format(fee_setting)) |
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.
.format(fee_setting)
part is a mistake? :-)
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.
Yap, @MarcoFalke I'll amend.
9ff66a1
to
0d101a3
Compare
re-ACK 0d101a3, only change is small test fixup Show signature and timestampSignature:
Timestamp of file with hash |
ACK 0d101a3 |
…eateTransaction 0d101a3 test: Add test for maxtxfee option (MarcoFalke) 1775501 wallet: Remove unreachable code in CreateTransaction (MarcoFalke) 5c1b971 wallet: Fix -maxtxfee check by moving it to CWallet::CreateTransaction (João Barbosa) Pull request description: Follow up to #16257, this PR makes `bumpfee` aware of `-maxtxfee`. It also prevents dangling locked unspents when calling `fundrawtransaction` - because the previous check was after `LockCoin`. ACKs for top commit: MarcoFalke: re-ACK 0d101a3, only change is small test fixup Tree-SHA512: 3464b24ae7cd4e72ed41438c6661828ba1304af020f05da62720b23668ae734e16cf47c6d97e150cc84ef631ee099b16fc786c858f3d089905845437338fd512
…let::CreateTransaction 0d101a3 test: Add test for maxtxfee option (MarcoFalke) 1775501 wallet: Remove unreachable code in CreateTransaction (MarcoFalke) 5c1b971 wallet: Fix -maxtxfee check by moving it to CWallet::CreateTransaction (João Barbosa) Pull request description: Follow up to bitcoin#16257, this PR makes `bumpfee` aware of `-maxtxfee`. It also prevents dangling locked unspents when calling `fundrawtransaction` - because the previous check was after `LockCoin`. ACKs for top commit: MarcoFalke: re-ACK 0d101a3, only change is small test fixup Tree-SHA512: 3464b24ae7cd4e72ed41438c6661828ba1304af020f05da62720b23668ae734e16cf47c6d97e150cc84ef631ee099b16fc786c858f3d089905845437338fd512
Being backported in #16414. |
Github-Pull: bitcoin#16322 Rebased-From: 5c1b971
…saction Github-Pull: bitcoin#16322 Rebased-From: 5c1b971
Github-Pull: bitcoin#16322 Rebased-From: 0d101a3
…et::CreateTransaction d3b3bb8 0.18: test: Add test for maxtxfee option (MarcoFalke) a11dbaa 0.18: wallet: Fix -maxtxfee check by moving it to CWallet::CreateTransaction (João Barbosa) 8f354ce 0.18: [wallet] abort when attempting to fund a transaction above maxtxfee (Sjors Provoost) Pull request description: Backports #16322 and #16257. ACKs for top commit: Sjors: re-ACK d3b3bb8 MarcoFalke: ACK d3b3bb8 (did the backport myself, arrived at the same result) Tree-SHA512: 8b0ca15fc7e893af80239afecf8ff1018d6f249f2fa530babe61ec34ede6103b9b60909259abb730ebf1d54789aceed94b136600158dc3d6c5505b07f28189e5
…:CreateTransaction Summary: wallet: Remove unreachable code in CreateTransaction test: Add test for maxtxfee option --- Backport of Core [[bitcoin/bitcoin#16322 | PR16322]] Test Plan: ninja all check ./test/functional/test_runner.py wallet_create_tx Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Differential Revision: https://reviews.bitcoinabc.org/D6664
…let::CreateTransaction 0d101a3 test: Add test for maxtxfee option (MarcoFalke) 1775501 wallet: Remove unreachable code in CreateTransaction (MarcoFalke) 5c1b971 wallet: Fix -maxtxfee check by moving it to CWallet::CreateTransaction (João Barbosa) Pull request description: Follow up to bitcoin#16257, this PR makes `bumpfee` aware of `-maxtxfee`. It also prevents dangling locked unspents when calling `fundrawtransaction` - because the previous check was after `LockCoin`. ACKs for top commit: MarcoFalke: re-ACK 0d101a3, only change is small test fixup Tree-SHA512: 3464b24ae7cd4e72ed41438c6661828ba1304af020f05da62720b23668ae734e16cf47c6d97e150cc84ef631ee099b16fc786c858f3d089905845437338fd512
…let::CreateTransaction 0d101a3 test: Add test for maxtxfee option (MarcoFalke) 1775501 wallet: Remove unreachable code in CreateTransaction (MarcoFalke) 5c1b971 wallet: Fix -maxtxfee check by moving it to CWallet::CreateTransaction (João Barbosa) Pull request description: Follow up to bitcoin#16257, this PR makes `bumpfee` aware of `-maxtxfee`. It also prevents dangling locked unspents when calling `fundrawtransaction` - because the previous check was after `LockCoin`. ACKs for top commit: MarcoFalke: re-ACK 0d101a3, only change is small test fixup Tree-SHA512: 3464b24ae7cd4e72ed41438c6661828ba1304af020f05da62720b23668ae734e16cf47c6d97e150cc84ef631ee099b16fc786c858f3d089905845437338fd512
Follow up to #16257, this PR makes
bumpfee
aware of-maxtxfee
.It also prevents dangling locked unspents when calling
fundrawtransaction
- because the previous check was afterLockCoin
.