forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wallet: unify HD chain generation in CWallet
additionally, let's do the lock-unlock validation test *before* trying to generate a new chain. as a bonus, it lets us make sure that we encrypt the HD chain using a key that's actually capable of unlocking the wallet. also, `upgradetohd` never checked if the passphrase was handed to us (which matters in encrypted blank wallets) before calling UpgradeToHD, so let's check it for them.
- Loading branch information
Showing
2 changed files
with
45 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters