Skip to content

Commit d89646d

Browse files
committed
fix: logic error in CheckDecryptionKey
1 parent d4286fb commit d89646d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/scriptpubkeyman.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ bool LegacyScriptPubKeyMan::CheckDecryptionKey(const CKeyingMaterial& master_key
222222
return false;
223223
}
224224

225-
if(!m_hd_chain.IsNull() && !m_hd_chain.IsCrypted()) {
225+
if(!m_hd_chain.IsNull() && m_hd_chain.IsCrypted()) {
226226
// try to decrypt seed and make sure it matches
227227
CHDChain hdChainTmp;
228228
if (!DecryptHDChain(master_key, hdChainTmp) || (m_hd_chain.GetID() != hdChainTmp.GetSeedHash())) {

0 commit comments

Comments
 (0)