|
|
@ -1689,13 +1689,8 @@ CBlockIndex* CWallet::ScanForWalletTransactions(CBlockIndex* pindexStart, CBlock |
|
|
|
LogPrintf("Still rescanning. At block %d. Progress=%f\n", pindex->nHeight, GuessVerificationProgress(chainParams.TxData(), pindex)); |
|
|
|
LogPrintf("Still rescanning. At block %d. Progress=%f\n", pindex->nHeight, GuessVerificationProgress(chainParams.TxData(), pindex)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool readRet = false; |
|
|
|
|
|
|
|
CBlock block; |
|
|
|
CBlock block; |
|
|
|
{ |
|
|
|
if (ReadBlockFromDisk(block, pindex, Params().GetConsensus())) { |
|
|
|
LOCK(cs_main); |
|
|
|
|
|
|
|
readRet = ReadBlockFromDisk(block, pindex, Params().GetConsensus()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (readRet) { |
|
|
|
|
|
|
|
LOCK2(cs_main, cs_wallet); |
|
|
|
LOCK2(cs_main, cs_wallet); |
|
|
|
if (pindex && !chainActive.Contains(pindex)) { |
|
|
|
if (pindex && !chainActive.Contains(pindex)) { |
|
|
|
// Abort scan if current block is no longer active, to prevent
|
|
|
|
// Abort scan if current block is no longer active, to prevent
|
|
|
|