From 1c2809b325983b001d089af84cedd74351adf5fd Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Sun, 15 Feb 2015 00:10:03 +0300 Subject: [PATCH] Add key pool upgrade warning. --- src/rpcwallet.cpp | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index 4090e01..5607a4b 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -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" : ""; } @@ -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(GetArg("-keypool", 100), 0); @@ -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(GetArg("-keypool", 100), 0); -- 1.7.1