walletunlocker+keychain+config_builder: use new aezeed version

This commit is contained in:
Oliver Gugger
2022-05-12 12:47:13 +02:00
parent daa5966119
commit 51a480129b
4 changed files with 26 additions and 11 deletions

View File

@ -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(