diff options
author | Sjors Provoost <sjors@sprovoost.nl> | 2019-06-28 22:44:38 -0400 |
---|---|---|
committer | Sjors Provoost <sjors@sprovoost.nl> | 2019-08-19 16:15:07 +0200 |
commit | e9adb96f8854d21a02d80b4295f1a2e57579cc18 (patch) | |
tree | f71935ecce27e5ae4898ed5a67366aec970c5ab3 /src/policy/fees.cpp | |
parent | c165df198d6e9ea7292af0578024113803b8a6a2 (diff) |
[wallet] abort when attempting to fund a transaction above maxtxfee
FundTransaction calls GetMinimumFee which, when the fee rate is absurdly high, quietly reduced the fee to -maxtxfee. Becaue an absurdly high fee rate is usually the result of a fat finger, aborting seems safer behavior.
Github-Pull: #16257
Rebased-From: 806b0052c3b45415862f74f20ba5f389e5b673de
Diffstat (limited to 'src/policy/fees.cpp')
-rw-r--r-- | src/policy/fees.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/policy/fees.cpp b/src/policy/fees.cpp index aee6fbee1a..d9a5474056 100644 --- a/src/policy/fees.cpp +++ b/src/policy/fees.cpp @@ -38,7 +38,6 @@ std::string StringForFeeReason(FeeReason reason) { {FeeReason::PAYTXFEE, "PayTxFee set"}, {FeeReason::FALLBACK, "Fallback fee"}, {FeeReason::REQUIRED, "Minimum Required Fee"}, - {FeeReason::MAXTXFEE, "MaxTxFee limit"} }; auto reason_string = fee_reason_strings.find(reason); |