Skip to content

Commit e6d3ef8

Browse files
committed
rpc, wallet: Document mempool scan after importpubkey
1 parent 6d3db52 commit e6d3ef8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/wallet/rpc/backup.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,11 +404,13 @@ RPCHelpMan importpubkey()
404404
"Hint: use importmulti to import more than one public key.\n"
405405
"\nNote: This call can take over an hour to complete if rescan is true, during that time, other rpc calls\n"
406406
"may report that the imported pubkey exists but related transactions are still missing, leading to temporarily incorrect/bogus balances and unspent outputs until rescan completes.\n"
407+
"The rescan parameter can be set to false if the key was never used to create transactions. If it is set to false,\n"
408+
"but the key was used to create transactions, rescanwallet needs to be called with the appropriate block range.\n"
407409
"Note: Use \"getwalletinfo\" to query the scanning progress.\n",
408410
{
409411
{"pubkey", RPCArg::Type::STR, RPCArg::Optional::NO, "The hex-encoded public key"},
410412
{"label", RPCArg::Type::STR, RPCArg::Default{""}, "An optional label"},
411-
{"rescan", RPCArg::Type::BOOL, RPCArg::Default{true}, "Rescan the wallet for transactions"},
413+
{"rescan", RPCArg::Type::BOOL, RPCArg::Default{true}, "Scan the chain and mempool for wallet transactions."},
412414
},
413415
RPCResult{RPCResult::Type::NONE, "", ""},
414416
RPCExamples{

0 commit comments

Comments
 (0)