diff options
author | Samuel Dobson <dobsonsa68@gmail.com> | 2021-12-08 16:55:21 +1300 |
---|---|---|
committer | Samuel Dobson <dobsonsa68@gmail.com> | 2021-12-12 19:05:18 +1300 |
commit | a2a92317ad4ab88cfca234f68337a7cd37897f10 (patch) | |
tree | 5f8cb545e0a68f77f5fcf425070b41fda26d39e2 /src/wallet | |
parent | fa3fb46b8172597cb64ff401b27f6c799fb832d7 (diff) |
rpc: Add warning to user about newkeypool command
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/rpc/addresses.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wallet/rpc/addresses.cpp b/src/wallet/rpc/addresses.cpp index edc4c26eeb..9d1ed6b07b 100644 --- a/src/wallet/rpc/addresses.cpp +++ b/src/wallet/rpc/addresses.cpp @@ -347,7 +347,12 @@ RPCHelpMan keypoolrefill() RPCHelpMan newkeypool() { return RPCHelpMan{"newkeypool", - "\nEntirely clears and refills the keypool."+ + "\nEntirely clears and refills the keypool.\n" + "WARNING: On non-HD wallets, this will require a new backup immediately, to include the new keys.\n" + "When restoring a backup of an HD wallet created before the newkeypool command is run, funds received to\n" + "new addresses may not appear automatically. They have not been lost, but the wallet may not find them.\n" + "This can be fixed by running the newkeypool command on the backup and then rescanning, so the wallet\n" + "re-generates the required keys." + HELP_REQUIRING_PASSPHRASE, {}, RPCResult{RPCResult::Type::NONE, "", ""}, |