aboutsummaryrefslogtreecommitdiff
path: root/src/policy
diff options
context:
space:
mode:
authorSjors Provoost <[email protected]>2019-06-28 22:44:38 -0400
committerJoão Barbosa <[email protected]>2019-08-25 02:48:30 +0100
commit8f354ced6e34247477c1b1a56d34e613f6104f0e (patch)
treeac7b1288d2d74e1d19e48c09fc3a9825c62d6939 /src/policy
parentMerge #16608: [0.18] Backport #15911: Use wallet RBF default for walletcreate... (diff)
downloaddiscoin-8f354ced6e34247477c1b1a56d34e613f6104f0e.tar.xz
discoin-8f354ced6e34247477c1b1a56d34e613f6104f0e.zip
0.18: [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')
-rw-r--r--src/policy/fees.cpp1
-rw-r--r--src/policy/fees.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/policy/fees.cpp b/src/policy/fees.cpp
index c49b9fa36..d5f00f654 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);
diff --git a/src/policy/fees.h b/src/policy/fees.h
index c8472a12f..1d5c15c56 100644
--- a/src/policy/fees.h
+++ b/src/policy/fees.h
@@ -43,7 +43,6 @@ enum class FeeReason {
PAYTXFEE,
FALLBACK,
REQUIRED,
- MAXTXFEE,
};
std::string StringForFeeReason(FeeReason reason);