Skip to content

Commit

Permalink
Add key pool upgrade warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
CryptoManiac committed Feb 14, 2015
1 parent 52c8588 commit 1c2809b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extern void TxToJSON(const CTransaction& tx, const uint256 hashBlock, json_spiri
std::string HelpRequiringPassphrase()
{
return pwalletMain->IsCrypted()
? "\nrequires wallet passphrase to be set with walletpassphrase first"
? "\n\nRequires wallet passphrase to be set with walletpassphrase first"
: "";
}

Expand Down Expand Up @@ -1410,7 +1410,9 @@ Value keypoolrefill(const Array& params, bool fHelp)
if (fHelp || params.size() > 1)
throw runtime_error(
"keypoolrefill [new-size]\n"
"Fills the keypool."
"Fills the keypool.\n"
"IMPORTANT: Any previous backups you have made of your wallet file "
"should be replaced with the newly generated one."
+ HelpRequiringPassphrase());

unsigned int nSize = max<unsigned int>(GetArg("-keypool", 100), 0);
Expand All @@ -1435,7 +1437,9 @@ Value keypoolreset(const Array& params, bool fHelp)
if (fHelp || params.size() > 1)
throw runtime_error(
"keypoolreset [new-size]\n"
"Resets the keypool."
"Resets the keypool.\n"
"IMPORTANT: Any previous backups you have made of your wallet file "
"should be replaced with the newly generated one."
+ HelpRequiringPassphrase());

unsigned int nSize = max<unsigned int>(GetArg("-keypool", 100), 0);
Expand Down

0 comments on commit 1c2809b

Please sign in to comment.