Skip to content

Commit df9e923

Browse files
author
João Barbosa
committed
Fix lockunspents help message
1 parent 09a079e commit df9e923

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,16 +2099,17 @@ UniValue lockunspent(const UniValue& params, bool fHelp)
20992099

21002100
if (fHelp || params.size() < 1 || params.size() > 2)
21012101
throw runtime_error(
2102-
"lockunspent unlock [{\"txid\":\"txid\",\"vout\":n},...]\n"
2102+
"lockunspent unlock ([{\"txid\":\"txid\",\"vout\":n},...])\n"
21032103
"\nUpdates list of temporarily unspendable outputs.\n"
21042104
"Temporarily lock (unlock=false) or unlock (unlock=true) specified transaction outputs.\n"
2105+
"If no transaction outputs are specified when unlocking then all current locked transaction outputs are unlocked.\n"
21052106
"A locked transaction output will not be chosen by automatic coin selection, when spending bitcoins.\n"
21062107
"Locks are stored in memory only. Nodes start with zero locked outputs, and the locked output list\n"
21072108
"is always cleared (by virtue of process exit) when a node stops or fails.\n"
21082109
"Also see the listunspent call\n"
21092110
"\nArguments:\n"
21102111
"1. unlock (boolean, required) Whether to unlock (true) or lock (false) the specified transactions\n"
2111-
"2. \"transactions\" (string, required) A json array of objects. Each object the txid (string) vout (numeric)\n"
2112+
"2. \"transactions\" (string, optional) A json array of objects. Each object the txid (string) vout (numeric)\n"
21122113
" [ (json array of json objects)\n"
21132114
" {\n"
21142115
" \"txid\":\"id\", (string) The transaction id\n"

0 commit comments

Comments
 (0)