diff options
author | Andrew Chow <github@achow101.com> | 2022-12-13 13:50:26 -0500 |
---|---|---|
committer | Andrew Chow <github@achow101.com> | 2022-12-13 14:19:00 -0500 |
commit | 8f3021155e8cc5c322654ddfab241705ac303a1f (patch) | |
tree | fe31d9a6d425f1aebdac6221bd0fef4117d8ee19 /src/qt | |
parent | a4baf3f177489f21b044468298825a70a1a15648 (diff) | |
parent | 798430d127521d088c081ee625912a704f415990 (diff) |
Merge bitcoin/bitcoin#26643: wallet: Move fee underpayment check to after all fee has been set
798430d127521d088c081ee625912a704f415990 wallet: Sanity check fee paid cannot be negative (Andrew Chow)
c1a84f108e320bd44c172a4dd3bb486ab777ff69 wallet: Move fee underpayment check to after fee setting (Andrew Chow)
e5daf976d5b064b585029d4bb38d68a8153ea13b wallet: Rename nFeeRet in CreateTransactionInternal to current_fee (Andrew Chow)
Pull request description:
Currently the fee underpayment check occurs right after we calculate what the transaction's fee should be. However the fee paid by the transaction at that time does not always match. Notably, when doing SFFO, the fee paid at that time will almost always be less than the fee required, which then required having a bypass of the underpayment check that results in SFFO payments going through when they should not.
This PR moves the underpayment check to after fees have been finalized so that we always check whether the fee is being underpaid. This removes the exception for SFFO and unifies this behavior for both SFFO and non-SFFO txs.
ACKs for top commit:
S3RK:
Code review ACK 798430d127521d088c081ee625912a704f415990
furszy:
Code review ACK 798430d
glozow:
utACK 798430d127, code looks correct to me
Tree-SHA512: 720e8a3dbdc9937b12ee7881eb2ad58332c9584520da87ef3080e6f9d6220ce8d3bd8b9317b4877e56a229113437340852976db8f64df0d5cc50723fa04b02f0
Diffstat (limited to 'src/qt')
0 files changed, 0 insertions, 0 deletions