Skip to content

Commit e90a445

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 1420547 commit e90a445

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wallet/rpc/backup.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ RPCHelpMan importprivkey()
101101
"\nNote: This call can take over an hour to complete if rescan is true, during that time, other rpc calls\n"
102102
"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"
103103
"The rescan parameter can be set to false if the key was never used to create transactions. If it is set to false,\n"
104-
"but the key was used to create transactions, rescanwallet needs to be called with the appropriate block range.\n"
104+
"but the key was used to create transactions, rescanblockchain needs to be called with the appropriate block range.\n"
105105
"Note: Use \"getwalletinfo\" to query the scanning progress.\n",
106106
{
107107
{"privkey", RPCArg::Type::STR, RPCArg::Optional::NO, "The private key (see dumpprivkey)"},
@@ -204,7 +204,7 @@ RPCHelpMan importaddress()
204204
"\nNote: This call can take over an hour to complete if rescan is true, during that time, other rpc calls\n"
205205
"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"
206206
"The rescan parameter can be set to false if the key was never used to create transactions. If it is set to false,\n"
207-
"but the key was used to create transactions, rescanwallet needs to be called with the appropriate block range.\n"
207+
"but the key was used to create transactions, rescanblockchain needs to be called with the appropriate block range.\n"
208208
"If you have the full public key, you should call importpubkey instead of this.\n"
209209
"Hint: use importmulti to import more than one address.\n"
210210
"\nNote: If you import a non-standard raw script in hex form, outputs sending to it will be treated\n"
@@ -406,7 +406,7 @@ RPCHelpMan importpubkey()
406406
"\nNote: This call can take over an hour to complete if rescan is true, during that time, other rpc calls\n"
407407
"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"
408408
"The rescan parameter can be set to false if the key was never used to create transactions. If it is set to false,\n"
409-
"but the key was used to create transactions, rescanwallet needs to be called with the appropriate block range.\n"
409+
"but the key was used to create transactions, rescanblockchain needs to be called with the appropriate block range.\n"
410410
"Note: Use \"getwalletinfo\" to query the scanning progress.\n",
411411
{
412412
{"pubkey", RPCArg::Type::STR, RPCArg::Optional::NO, "The hex-encoded public key"},
@@ -1257,7 +1257,7 @@ RPCHelpMan importmulti()
12571257
"\nNote: This call can take over an hour to complete if rescan is true, during that time, other rpc calls\n"
12581258
"may report that the imported keys, addresses or scripts exist but related transactions are still missing.\n"
12591259
"The rescan parameter can be set to false if the key was never used to create transactions. If it is set to false,\n"
1260-
"but the key was used to create transactions, rescanwallet needs to be called with the appropriate block range.\n"
1260+
"but the key was used to create transactions, rescanblockchain needs to be called with the appropriate block range.\n"
12611261
"Note: Use \"getwalletinfo\" to query the scanning progress.\n",
12621262
{
12631263
{"requests", RPCArg::Type::ARR, RPCArg::Optional::NO, "Data to be imported",

0 commit comments

Comments
 (0)