Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcwallet.cpp
Show First 20 Lines • Show All 2,645 Lines • ▼ Show 20 Lines | if (pwallet->IsCrypted() && (request.fHelp || request.params.size() != 2)) { | ||||
"1. \"passphrase\" (string, required) The wallet passphrase\n" | "1. \"passphrase\" (string, required) The wallet passphrase\n" | ||||
"2. timeout (numeric, required) The time to keep the " | "2. timeout (numeric, required) The time to keep the " | ||||
"decryption key in seconds.\n" | "decryption key in seconds.\n" | ||||
"\nNote:\n" | "\nNote:\n" | ||||
"Issuing the walletpassphrase command while the wallet is already " | "Issuing the walletpassphrase command while the wallet is already " | ||||
"unlocked will set a new unlock\n" | "unlocked will set a new unlock\n" | ||||
"time that overrides the old one.\n" | "time that overrides the old one.\n" | ||||
"\nExamples:\n" | "\nExamples:\n" | ||||
"\nunlock the wallet for 60 seconds\n" + | "\nUnlock the wallet for 60 seconds\n" + | ||||
HelpExampleCli("walletpassphrase", "\"my pass phrase\" 60") + | HelpExampleCli("walletpassphrase", "\"my pass phrase\" 60") + | ||||
"\nLock the wallet again (before 60 seconds)\n" + | "\nLock the wallet again (before 60 seconds)\n" + | ||||
HelpExampleCli("walletlock", "") + "\nAs json rpc call\n" + | HelpExampleCli("walletlock", "") + "\nAs json rpc call\n" + | ||||
HelpExampleRpc("walletpassphrase", "\"my pass phrase\", 60")); | HelpExampleRpc("walletpassphrase", "\"my pass phrase\", 60")); | ||||
} | } | ||||
LOCK2(cs_main, pwallet->cs_wallet); | LOCK2(cs_main, pwallet->cs_wallet); | ||||
▲ Show 20 Lines • Show All 168 Lines • ▼ Show 20 Lines | if (!pwallet->IsCrypted() && | ||||
"If the wallet is already encrypted, use the " | "If the wallet is already encrypted, use the " | ||||
"walletpassphrasechange call.\n" | "walletpassphrasechange call.\n" | ||||
"Note that this will shutdown the server.\n" | "Note that this will shutdown the server.\n" | ||||
"\nArguments:\n" | "\nArguments:\n" | ||||
"1. \"passphrase\" (string) The pass phrase to encrypt the " | "1. \"passphrase\" (string) The pass phrase to encrypt the " | ||||
"wallet with. It must be at least 1 character, but should be " | "wallet with. It must be at least 1 character, but should be " | ||||
"long.\n" | "long.\n" | ||||
"\nExamples:\n" | "\nExamples:\n" | ||||
"\nEncrypt you wallet\n" + | "\nEncrypt your wallet\n" + | ||||
HelpExampleCli("encryptwallet", "\"my pass phrase\"") + | HelpExampleCli("encryptwallet", "\"my pass phrase\"") + | ||||
"\nNow set the passphrase to use the wallet, such as for signing " | "\nNow set the passphrase to use the wallet, such as for signing " | ||||
"or sending bitcoin\n" + | "or sending bitcoin\n" + | ||||
HelpExampleCli("walletpassphrase", "\"my pass phrase\"") + | HelpExampleCli("walletpassphrase", "\"my pass phrase\"") + | ||||
"\nNow we can so something like sign\n" + | "\nNow we can do something like sign\n" + | ||||
HelpExampleCli("signmessage", "\"address\" \"test message\"") + | HelpExampleCli("signmessage", "\"address\" \"test message\"") + | ||||
"\nNow lock the wallet again by removing the passphrase\n" + | "\nNow lock the wallet again by removing the passphrase\n" + | ||||
HelpExampleCli("walletlock", "") + "\nAs a json rpc call\n" + | HelpExampleCli("walletlock", "") + "\nAs a json rpc call\n" + | ||||
HelpExampleRpc("encryptwallet", "\"my pass phrase\"")); | HelpExampleRpc("encryptwallet", "\"my pass phrase\"")); | ||||
} | } | ||||
LOCK2(cs_main, pwallet->cs_wallet); | LOCK2(cs_main, pwallet->cs_wallet); | ||||
▲ Show 20 Lines • Show All 1,423 Lines • Show Last 20 Lines |