aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2016-03-23 17:42:11 +0100
committerWladimir J. van der Laan <[email protected]>2016-03-23 17:42:15 +0100
commite5c35119e967df94d8ac0d91959c07245d160ec5 (patch)
tree81386255cd17fcba30416634639e5a4d3752c886 /src
parentMerge #7739: [Wallet][RPC] add abandoned status to listtransactions (diff)
parentFix lockunspents help message (diff)
downloaddiscoin-e5c35119e967df94d8ac0d91959c07245d160ec5.tar.xz
discoin-e5c35119e967df94d8ac0d91959c07245d160ec5.zip
Merge #7646: Fix lockunspent help message
df9e923 Fix lockunspents help message (João Barbosa)
Diffstat (limited to 'src')
-rw-r--r--src/wallet/rpcwallet.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp
index 8f7c64983..1d2350596 100644
--- a/src/wallet/rpcwallet.cpp
+++ b/src/wallet/rpcwallet.cpp
@@ -2099,16 +2099,17 @@ UniValue lockunspent(const UniValue& params, bool fHelp)
if (fHelp || params.size() < 1 || params.size() > 2)
throw runtime_error(
- "lockunspent unlock [{\"txid\":\"txid\",\"vout\":n},...]\n"
+ "lockunspent unlock ([{\"txid\":\"txid\",\"vout\":n},...])\n"
"\nUpdates list of temporarily unspendable outputs.\n"
"Temporarily lock (unlock=false) or unlock (unlock=true) specified transaction outputs.\n"
+ "If no transaction outputs are specified when unlocking then all current locked transaction outputs are unlocked.\n"
"A locked transaction output will not be chosen by automatic coin selection, when spending bitcoins.\n"
"Locks are stored in memory only. Nodes start with zero locked outputs, and the locked output list\n"
"is always cleared (by virtue of process exit) when a node stops or fails.\n"
"Also see the listunspent call\n"
"\nArguments:\n"
"1. unlock (boolean, required) Whether to unlock (true) or lock (false) the specified transactions\n"
- "2. \"transactions\" (string, required) A json array of objects. Each object the txid (string) vout (numeric)\n"
+ "2. \"transactions\" (string, optional) A json array of objects. Each object the txid (string) vout (numeric)\n"
" [ (json array of json objects)\n"
" {\n"
" \"txid\":\"id\", (string) The transaction id\n"