aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpcwallet.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2017-03-27 13:55:28 +0200
committerJonas Schnelli <dev@jonasschnelli.ch>2017-04-02 10:12:42 +0200
commit2718db070589114d54fdf227fb560c1578a7e419 (patch)
tree1f8031450c18a9f6aac8fde27d6feb552b9ca721 /src/wallet/rpcwallet.cpp
parent0337a39d31603eb2c723a560410357f186763dc2 (diff)
downloadbitcoin-2718db070589114d54fdf227fb560c1578a7e419.tar.xz
Restore invalid fee check (must be > 0)
Diffstat (limited to 'src/wallet/rpcwallet.cpp')
-rw-r--r--src/wallet/rpcwallet.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp
index 701e9987b5..f746c54f24 100644
--- a/src/wallet/rpcwallet.cpp
+++ b/src/wallet/rpcwallet.cpp
@@ -2858,6 +2858,9 @@ UniValue bumpfee(const JSONRPCRequest& request)
}
} else if (options.exists("totalFee")) {
totalFee = options["totalFee"].get_int64();
+ if (totalFee <= 0) {
+ throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Invalid totalFee %s (must be greater than 0)", FormatMoney(totalFee)));
+ }
}
if (options.exists("replaceable")) {