mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-22 14:52:41 +02:00
Elaborate error messages for outdated options
This commit is contained in:
parent
35ed094e4b
commit
a31d75e5fb
@ -58,19 +58,19 @@ static void PreventOutdatedOptions(const UniValue& options)
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use fee_rate (" + CURRENCY_ATOM + "/vB) instead of feeRate");
|
||||
}
|
||||
if (options.exists("changeAddress")) {
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use change_address");
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use change_address instead of changeAddress");
|
||||
}
|
||||
if (options.exists("changePosition")) {
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use change_position");
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use change_position instead of changePosition");
|
||||
}
|
||||
if (options.exists("includeWatching")) {
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use include_watching");
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use include_watching instead of includeWatching");
|
||||
}
|
||||
if (options.exists("lockUnspents")) {
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use lock_unspents");
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use lock_unspents instead of lockUnspents");
|
||||
}
|
||||
if (options.exists("subtractFeeFromOutputs")) {
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use subtract_fee_from_outputs");
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use subtract_fee_from_outputs instead of subtractFeeFromOutputs");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user