You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.
if (fReindex)
{
CImportingNow imp;
int nFile = 0;
while (true) {
CDiskBlockPos pos(nFile, 0);
if (!boost::filesystem::exists(GetBlockPosFilename(pos, "blk")))
break; // No block files left to reindex
FILE *file = OpenBlockFile(pos, true);
if (!file)
break; // This error is logged in OpenBlockFile
LogPrintf("Reindexing block file blk%05u.dat...\n", (unsigned int)nFile);
pnetMan->getActivePaymentNetwork()->getChainManager()->LoadExternalBlockFile(chainparams, file, &pos);
nFile++;
}
pnetMan->getActivePaymentNetwork()->getChainManager()->pblocktree->WriteReindexing(false);
fReindex = false;
LogPrintf("Reindexing finished\n");
// To avoid ending up in a situation without genesis block, re-try initializing (no-op if reindexing worked):
pnetMan->getActivePaymentNetwork()->getChainManager()->InitBlockIndex(chainparams);
}
i think this bit of codes while(true) completely locks the daemon up and also makes the rpc server unresponsive
The text was updated successfully, but these errors were encountered:
i think this bit of codes while(true) completely locks the daemon up and also makes the rpc server unresponsive
The text was updated successfully, but these errors were encountered: