Skip to content

Commit

Permalink
scan optimisation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
levoncrypto committed Aug 22, 2024
1 parent 1622404 commit 8486aea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2424,8 +2424,8 @@ CBlockIndex* CWallet::ScanForWalletTransactions(CBlockIndex *pindexStart, bool f
} else {
bool fRescan = GetBoolArg("-rescan", false);
if (fRescan || fRecoverMnemonic) {
if (nTimeFirstKey < mnemonicStartBlock->GetBlockTime())
pindex = chainActive.FindEarliestAtLeast(nTimeFirstKey);
if (mnemonicContainer.IsNull())
pindex = chainActive.Genesis();
else
pindex = mnemonicStartBlock;
}
Expand Down

0 comments on commit 8486aea

Please sign in to comment.