Skip to content

Commit a2a9231

Browse files
committed
rpc: Add warning to user about newkeypool command
1 parent fa3fb46 commit a2a9231

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/wallet/rpc/addresses.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,12 @@ RPCHelpMan keypoolrefill()
347347
RPCHelpMan newkeypool()
348348
{
349349
return RPCHelpMan{"newkeypool",
350-
"\nEntirely clears and refills the keypool."+
350+
"\nEntirely clears and refills the keypool.\n"
351+
"WARNING: On non-HD wallets, this will require a new backup immediately, to include the new keys.\n"
352+
"When restoring a backup of an HD wallet created before the newkeypool command is run, funds received to\n"
353+
"new addresses may not appear automatically. They have not been lost, but the wallet may not find them.\n"
354+
"This can be fixed by running the newkeypool command on the backup and then rescanning, so the wallet\n"
355+
"re-generates the required keys." +
351356
HELP_REQUIRING_PASSPHRASE,
352357
{},
353358
RPCResult{RPCResult::Type::NONE, "", ""},

0 commit comments

Comments
 (0)