Skip to content

Commit c781298

Browse files
Merge #6938: fix: logic error in CheckDecryptionKey
d89646d fix: logic error in `CheckDecryptionKey` (UdjinM6) Pull request description: ## Issue being fixed or feature implemented The issue was introduced via 392b51b ## What was done? ## How Has This Been Tested? ## Breaking Changes ## Checklist: - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [ ] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_ ACKs for top commit: PastaPastaPasta: utACK d89646d knst: utACK d89646d Tree-SHA512: 31419798b3c05bb3c4c30cf02b819c899e0d0e0048775d907099c6507afaf189d12eeb8ec33232801e1874fe9c156558e7936a43f34cce1409ca273c3bc1919c
2 parents 7d301e5 + d89646d commit c781298

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)