Skip to content

Commit 2718db0

Browse files
committed
Restore invalid fee check (must be > 0)
1 parent 0337a39 commit 2718db0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2858,6 +2858,9 @@ UniValue bumpfee(const JSONRPCRequest& request)
28582858
}
28592859
} else if (options.exists("totalFee")) {
28602860
totalFee = options["totalFee"].get_int64();
2861+
if (totalFee <= 0) {
2862+
throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Invalid totalFee %s (must be greater than 0)", FormatMoney(totalFee)));
2863+
}
28612864
}
28622865

28632866
if (options.exists("replaceable")) {

0 commit comments

Comments
 (0)