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
rpc: make sure upgradetohd always has the passphrase for UpgradeToHD
earlier it was possible to make it all the way to `EncryptSecret`
without actually having the passphrase in hand until being told off
by `CCrypter::SetKey`, we should avoid that.
also, let's get rid of checks that `UpgradeToHD` is now taking
responsibility for. no point in checking if the wallet is unlocked
as it has no bearing on your ability to upgrade the wallet.
"\nIf your wallet is encrypted, the wallet passphrase must be supplied. Supplying an incorrect"
2783
+
"\npassphrase may result in your wallet getting locked.\n"
2782
2784
"\nWarning: You will need to make a new backup of your wallet after setting the HD wallet mnemonic.\n",
2783
2785
{
2784
2786
{"mnemonic", RPCArg::Type::STR, /* default */"", "Mnemonic as defined in BIP39 to use for the new HD wallet. Use an empty string \"\" to generate a new random mnemonic."},
2785
2787
{"mnemonicpassphrase", RPCArg::Type::STR, /* default */"", "Optional mnemonic passphrase as defined in BIP39"},
2786
-
{"walletpassphrase", RPCArg::Type::STR, /* default */"", "If your wallet is encrypted you must have your wallet passphrase here. If your wallet is not encrypted specifying wallet passphrase will trigger wallet encryption."},
2788
+
{"walletpassphrase", RPCArg::Type::STR, /* default */"", "If your wallet is encrypted you must have your wallet passphrase here. If your wallet is not encrypted, specifying wallet passphrase will trigger wallet encryption."},
2787
2789
{"rescan", RPCArg::Type::BOOL, /* default */"false if mnemonic is empty", "Whether to rescan the blockchain for missing transactions or not"},
0 commit comments