Skip to content

Commit ecbbb5c

Browse files
author
MarcoFalke
committed
Merge #16071: RPC: Hint for importmulti in help output of importpubkey and importaddress
df0e97c RPC: Hint for importmulti in help output of importpubkey and importaddress (Kristaps Kaupe) Pull request description: Similar to #12702. Hint for `importmulti` also in help output of `importpubkey` and `importaddress`. ACKs for commit df0e97: promag: utACK df0e97c. jonasschnelli: utACK df0e97c Tree-SHA512: db7358d7f4d463a50874e605bbca35a1a40dbefbb1d35cf51fe2f2aa34bef90c3ca398f4ffbcb9d7d43887a03eb8d81b6ef59066a3c7eda18a7eea876f6592e7
2 parents 3001cc6 + df0e97c commit ecbbb5c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wallet/rpcdump.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ UniValue importaddress(const JSONRPCRequest& request)
289289
"\nNote: This call can take over an hour to complete if rescan is true, during that time, other rpc calls\n"
290290
"may report that the imported address exists but related transactions are still missing, leading to temporarily incorrect/bogus balances and unspent outputs until rescan completes.\n"
291291
"If you have the full public key, you should call importpubkey instead of this.\n"
292+
"Hint: use importmulti to import more than one address.\n"
292293
"\nNote: If you import a non-standard raw script in hex form, outputs sending to it will be treated\n"
293294
"as change, and not show up in many RPCs.\n",
294295
{
@@ -486,6 +487,7 @@ UniValue importpubkey(const JSONRPCRequest& request)
486487
throw std::runtime_error(
487488
RPCHelpMan{"importpubkey",
488489
"\nAdds a public key (in hex) that can be watched as if it were in your wallet but cannot be used to spend. Requires a new wallet backup.\n"
490+
"Hint: use importmulti to import more than one public key.\n"
489491
"\nNote: This call can take over an hour to complete if rescan is true, during that time, other rpc calls\n"
490492
"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",
491493
{

0 commit comments

Comments
 (0)