mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge 25d23e6b18 into merged_master (Bitcoin PR bitcoin/bitcoin#28980)
This commit is contained in:
commit
4c3dc90d82
1 changed files with 6 additions and 2 deletions
|
|
@ -220,7 +220,11 @@ RPCHelpMan encryptwallet()
|
|||
"After this, any calls that interact with private keys such as sending or signing \n"
|
||||
"will require the passphrase to be set prior the making these calls.\n"
|
||||
"Use the walletpassphrase call for this, and then walletlock call.\n"
|
||||
"If the wallet is already encrypted, use the walletpassphrasechange call.\n",
|
||||
"If the wallet is already encrypted, use the walletpassphrasechange call.\n"
|
||||
"** IMPORTANT **\n"
|
||||
"For security reasons, the encryption process will generate a new HD seed, resulting\n"
|
||||
"in the creation of a fresh set of active descriptors. Therefore, it is crucial to\n"
|
||||
"securely back up the newly generated wallet file using the backupwallet RPC.\n",
|
||||
{
|
||||
{"passphrase", RPCArg::Type::STR, RPCArg::Optional::NO, "The pass phrase to encrypt the wallet with. It must be at least 1 character, but should be long."},
|
||||
},
|
||||
|
|
@ -268,7 +272,7 @@ RPCHelpMan encryptwallet()
|
|||
throw JSONRPCError(RPC_WALLET_ENCRYPTION_FAILED, "Error: Failed to encrypt the wallet.");
|
||||
}
|
||||
|
||||
return "wallet encrypted; The keypool has been flushed and a new HD seed was generated (if you are using HD). You need to make a new backup.";
|
||||
return "wallet encrypted; The keypool has been flushed and a new HD seed was generated. You need to make a new backup with the backupwallet RPC.";
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue