You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge bitcoin#25680: rpc, docs: Add note for commands that supports only legacy wallets
* Merge bitcoin#25680: rpc, docs: Add note for commands that supports only legacy wallets
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Fix missing changes from Bitcoin commit 0713088
Add legacy wallet notes to addmultisigaddress and sethdseed commands
that were missing from the original backport.
- Add note to addmultisigaddress in addresses.cpp
- Add note to sethdseed in wallet.cpp
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
---------
Co-authored-by: Claude Code <[email protected]>
Co-authored-by: Claude <[email protected]>
Copy file name to clipboardExpand all lines: src/wallet/rpc/backup.cpp
+14-7Lines changed: 14 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,8 @@ RPCHelpMan importprivkey()
89
89
"\nAdds a private key (as returned by dumpprivkey) to your wallet. Requires a new wallet backup.\n"
90
90
"Hint: use importmulti to import more than one private key.\n"
91
91
"\nNote: This call can take over an hour to complete if rescan is true, during that time, other rpc calls\n"
92
-
"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",
92
+
"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"
93
+
"Note: This command is only compatible with legacy wallets. Use \"importdescriptors\" with \"combo(X)\" for descriptor wallets.\n",
93
94
{
94
95
{"privkey", RPCArg::Type::STR, RPCArg::Optional::NO, "The private key (see dumpprivkey)"},
"\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"
401
403
"Hint: use importmulti to import more than one public key.\n"
402
404
"\nNote: This call can take over an hour to complete if rescan is true, during that time, other rpc calls\n"
403
-
"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",
405
+
"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"
406
+
"Note: This command is only compatible with legacy wallets. Use \"importdescriptors\" with \"combo(X)\" for descriptor wallets.\n",
404
407
{
405
408
{"pubkey", RPCArg::Type::STR, RPCArg::Optional::NO, "The hex-encoded public key"},
"\nImports keys from a wallet dump file (see dumpwallet). Requires a new wallet backup to include imported keys.\n"
483
-
"Note: Use \"getwalletinfo\" to query the scanning progress.\n",
486
+
"Note: Use \"getwalletinfo\" to query the scanning progress.\n"
487
+
"Note: This command is only compatible with legacy wallets.\n",
484
488
{
485
489
{"filename", RPCArg::Type::STR, RPCArg::Optional::NO, "The wallet file"},
486
490
},
@@ -820,7 +824,8 @@ RPCHelpMan dumpprivkey()
820
824
{
821
825
return RPCHelpMan{"dumpprivkey",
822
826
"\nReveals the private key corresponding to 'address'.\n"
823
-
"Then the importprivkey can be used with this output\n",
827
+
"Then the importprivkey can be used with this output\n"
828
+
"Note: This command is only compatible with legacy wallets.\n",
824
829
{
825
830
{"address", RPCArg::Type::STR, RPCArg::Optional::NO, "The Dash address for the private key"},
826
831
},
@@ -915,7 +920,8 @@ RPCHelpMan dumpwallet()
915
920
"\nDumps all wallet keys in a human-readable format to a server-side file. This does not allow overwriting existing files.\n"
916
921
"Imported scripts are included in the dumpfile too, their corresponding addresses will be added automatically by importwallet.\n"
917
922
"Note that if your wallet contains keys which are not derived from your HD seed (e.g. imported keys), these are not covered by\n"
918
-
"only backing up the seed itself, and must be backed up too (e.g. ensure you back up the whole dumpfile).\n",
923
+
"only backing up the seed itself, and must be backed up too (e.g. ensure you back up the whole dumpfile).\n"
924
+
"Note: This command is only compatible with legacy wallets.\n",
919
925
{
920
926
{"filename", RPCArg::Type::STR, RPCArg::Optional::NO, "The filename with path (absolute path recommended)"},
921
927
},
@@ -1467,7 +1473,8 @@ RPCHelpMan importmulti()
1467
1473
"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"
1468
1474
"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"
1469
1475
"\nNote: This call can take over an hour to complete if rescan is true, during that time, other rpc calls\n"
1470
-
"may report that the imported keys, addresses or scripts exists but related transactions are still missing.\n",
1476
+
"may report that the imported keys, addresses or scripts exists but related transactions are still missing.\n"
1477
+
"Note: This command is only compatible with legacy wallets. Use \"importdescriptors\" for descriptor wallets.\n",
1471
1478
{
1472
1479
{"requests", RPCArg::Type::ARR, RPCArg::Optional::NO, "Data to be imported",
Copy file name to clipboardExpand all lines: src/wallet/rpc/wallet.cpp
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -772,8 +772,8 @@ static RPCHelpMan sethdseed()
772
772
return RPCHelpMan{"sethdseed",
773
773
"\nSet or generate a new HD wallet seed. Non-HD wallets will not be upgraded to being a HD wallet. Wallets that are already\n"
774
774
"HD can not be updated to a new HD seed.\n"
775
-
"\nNote that you will need to MAKE A NEW BACKUP of your wallet after setting the HD wallet seed." +
776
-
HELP_REQUIRING_PASSPHRASE,
775
+
"\nNote that you will need to MAKE A NEW BACKUP of your wallet after setting the HD wallet seed." + HELP_REQUIRING_PASSPHRASE +
776
+
"Note: This command is only compatible with legacy wallets.\n",
777
777
{
778
778
{"newkeypool", RPCArg::Type::BOOL, RPCArg::Default{true}, "Whether to flush old unused addresses, including change addresses, from the keypool and regenerate it.\n"
779
779
"If true, the next address from getnewaddress and change address from getrawchangeaddress will be from this new seed.\n"
0 commit comments