Skip to content

Commit 08674ee

Browse files
committed
scripted-diff: rpc: fix rescan RPC name (s/rescanwallet/rescanblockchain/)
There is no RPC call named `rescanwallet`, i.e. fix this by renaming to the actual RPC called `rescanblockchain`. -BEGIN VERIFY SCRIPT- sed -i s/rescanwallet/rescanblockchain/ $(git grep -l rescanwallet) -END VERIFY SCRIPT-
1 parent 35c7990 commit 08674ee

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/wallet/rpc/backup.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ RPCHelpMan importprivkey()
9292
"\nNote: This call can take over an hour to complete if rescan is true, during that time, other rpc calls\n"
9393
"may report that the imported key exists but related transactions are still missing, leading to temporarily incorrect/bogus balances and unspent outputs until rescan completes.\n"
9494
"The rescan parameter can be set to false if the key was never used to create transactions. If it is set to false,\n"
95-
"but the key was used to create transactions, rescanwallet needs to be called with the appropriate block range.\n"
95+
"but the key was used to create transactions, rescanblockchain needs to be called with the appropriate block range.\n"
9696
"Note: This command is only compatible with legacy wallets. Use \"importdescriptors\" with \"combo(X)\" for descriptor wallets.\n",
9797
{
9898
{"privkey", RPCArg::Type::STR, RPCArg::Optional::NO, "The private key (see dumpprivkey)"},
@@ -211,7 +211,7 @@ RPCHelpMan importaddress()
211211
"\nNote: This call can take over an hour to complete if rescan is true, during that time, other rpc calls\n"
212212
"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"
213213
"The rescan parameter can be set to false if the key was never used to create transactions. If it is set to false,\n"
214-
"but the key was used to create transactions, rescanwallet needs to be called with the appropriate block range.\n"
214+
"but the key was used to create transactions, rescanblockchain needs to be called with the appropriate block range.\n"
215215
"If you have the full public key, you should call importpubkey instead of this.\n"
216216
"Hint: use importmulti to import more than one address.\n"
217217
"\nNote: If you import a non-standard raw script in hex form, outputs sending to it will be treated\n"
@@ -409,7 +409,7 @@ RPCHelpMan importpubkey()
409409
"\nNote: This call can take over an hour to complete if rescan is true, during that time, other rpc calls\n"
410410
"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"
411411
"The rescan parameter can be set to false if the key was never used to create transactions. If it is set to false,\n"
412-
"but the key was used to create transactions, rescanwallet needs to be called with the appropriate block range.\n"
412+
"but the key was used to create transactions, rescanblockchain needs to be called with the appropriate block range.\n"
413413
"Note: This command is only compatible with legacy wallets. Use \"importdescriptors\" with \"combo(X)\" for descriptor wallets.\n",
414414
{
415415
{"pubkey", RPCArg::Type::STR, RPCArg::Optional::NO, "The hex-encoded public key"},
@@ -1482,7 +1482,7 @@ RPCHelpMan importmulti()
14821482
"If an address/script is imported without all of the private keys required to spend from that address, it will be watchonly. The 'watchonly' option must be set to true in this case or a warning will be returned.\n"
14831483
"Conversely, if all the private keys are provided and the address/script is spendable, the watchonly option must be set to false, or a warning will be returned.\n"
14841484
"The rescan parameter can be set to false if the key was never used to create transactions. If it is set to false,\n"
1485-
"but the key was used to create transactions, rescanwallet needs to be called with the appropriate block range.\n"
1485+
"but the key was used to create transactions, rescanblockchain needs to be called with the appropriate block range.\n"
14861486
"\nNote: This call can take over an hour to complete if rescan is true, during that time, other rpc calls\n"
14871487
"may report that the imported keys, addresses or scripts exists but related transactions are still missing.\n"
14881488
"Note: This command is only compatible with legacy wallets. Use \"importdescriptors\" for descriptor wallets.\n",

0 commit comments

Comments
 (0)