Skip to content

Commit 35dc258

Browse files
committed
chore: trivial cleanup
1 parent 96de036 commit 35dc258

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/wallet/walletdb.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,9 +574,8 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue,
574574
assert ((strType == DBKeys::CRYPTED_HDCHAIN) == chain.IsCrypted());
575575
// Skip encryption check during loading as MASTER_KEY records may not be loaded yet.
576576
// Consistency will be validated after all records are loaded.
577-
if (!pwallet->GetOrCreateLegacyScriptPubKeyMan()->LoadHDChain(chain, /*skip_encryption_check=*/true))
578-
{
579-
strErr = "Error reading wallet database: SetHDChain failed";
577+
if (!pwallet->GetOrCreateLegacyScriptPubKeyMan()->LoadHDChain(chain, /*skip_encryption_check=*/true)) {
578+
strErr = "Error reading wallet database: LoadHDChain failed";
580579
return false;
581580
}
582581
} else if (strType == DBKeys::HDPUBKEY) {

0 commit comments

Comments
 (0)