aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpcwallet.cpp
diff options
context:
space:
mode:
authorNima Yazdanmehr <[email protected]>2020-09-30 20:43:05 +0330
committerNima Yazdanmehr <[email protected]>2020-09-30 20:43:05 +0330
commitf471a3be00c2b6433b8c258b716982c0539da13f (patch)
treead276091904da4b653ee3a76dcbafd9e58795405 /src/wallet/rpcwallet.cpp
parentMerge #19927: validation: Reduce direct g_chainman usage (diff)
downloaddiscoin-f471a3be00c2b6433b8c258b716982c0539da13f.tar.xz
discoin-f471a3be00c2b6433b8c258b716982c0539da13f.zip
scripted diff: Improve invalid vout value rpc error message
-BEGIN VERIFY SCRIPT- r() { sed -i 's/vout must be positive/vout cannot be negative/g' $1 } r $(git grep -l 'vout must be positive') -END VERIFY SCRIPT-
Diffstat (limited to 'src/wallet/rpcwallet.cpp')
-rw-r--r--src/wallet/rpcwallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp
index 2217bc287..6ffe85290 100644
--- a/src/wallet/rpcwallet.cpp
+++ b/src/wallet/rpcwallet.cpp
@@ -2173,7 +2173,7 @@ static RPCHelpMan lockunspent()
const uint256 txid(ParseHashO(o, "txid"));
const int nOutput = find_value(o, "vout").get_int();
if (nOutput < 0) {
- throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, vout must be positive");
+ throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, vout cannot be negative");
}
const COutPoint outpt(txid, nOutput);