mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Restore invalid fee check (must be > 0)
This commit is contained in:
parent
0337a39d31
commit
2718db0705
1 changed files with 3 additions and 0 deletions
|
|
@ -2858,6 +2858,9 @@ UniValue bumpfee(const JSONRPCRequest& request)
|
||||||
}
|
}
|
||||||
} else if (options.exists("totalFee")) {
|
} else if (options.exists("totalFee")) {
|
||||||
totalFee = options["totalFee"].get_int64();
|
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")) {
|
if (options.exists("replaceable")) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue