mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-02 19:44:03 +02:00
walletunlocker+keychain+config_builder: use new aezeed version
This commit is contained in:
@ -965,14 +965,13 @@ func waitForWalletPassword(cfg *Config,
|
||||
// seed. If it's greater than the current key derivation
|
||||
// version, then we'll return an error as we don't understand
|
||||
// this.
|
||||
const latestVersion = keychain.KeyDerivationVersion
|
||||
if cipherSeed != nil &&
|
||||
cipherSeed.InternalVersion != latestVersion {
|
||||
!keychain.IsKnownVersion(cipherSeed.InternalVersion) {
|
||||
|
||||
return nil, fmt.Errorf("invalid internal "+
|
||||
"seed version %v, current version is %v",
|
||||
"seed version %v, current max version is %v",
|
||||
cipherSeed.InternalVersion,
|
||||
keychain.KeyDerivationVersion)
|
||||
keychain.CurrentKeyDerivationVersion)
|
||||
}
|
||||
|
||||
loader, err := btcwallet.NewWalletLoader(
|
||||
|
Reference in New Issue
Block a user