diff options
| author | Sjors Provoost <[email protected]> | 2019-06-28 22:44:38 -0400 |
|---|---|---|
| committer | Sjors Provoost <[email protected]> | 2019-06-28 22:44:38 -0400 |
| commit | 806b0052c3b45415862f74f20ba5f389e5b673de (patch) | |
| tree | f8acbb20ec282a28fb0eba331a4e81d6a75872e4 /src/util/error.h | |
| parent | Merge #16278: tests: Remove unused includes (diff) | |
| download | discoin-806b0052c3b45415862f74f20ba5f389e5b673de.tar.xz discoin-806b0052c3b45415862f74f20ba5f389e5b673de.zip | |
[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.
Diffstat (limited to 'src/util/error.h')
| -rw-r--r-- | src/util/error.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/error.h b/src/util/error.h index d93309551..0fd474b96 100644 --- a/src/util/error.h +++ b/src/util/error.h @@ -27,6 +27,7 @@ enum class TransactionError { INVALID_PSBT, PSBT_MISMATCH, SIGHASH_MISMATCH, + MAX_FEE_EXCEEDED, }; std::string TransactionErrorString(const TransactionError error); |