Decouple CChain from mapBlockIndex

This commit is contained in:
jtimon
2014-09-03 02:52:01 +02:00
parent eecd3c0fb0
commit 6db83db3eb
3 changed files with 10 additions and 9 deletions

View File

@@ -1151,7 +1151,7 @@ bool AppInit2(boost::thread_group& threadGroup)
CWalletDB walletdb(strWalletFile);
CBlockLocator locator;
if (walletdb.ReadBestBlock(locator))
pindexRescan = chainActive.FindFork(locator);
pindexRescan = FindForkInGlobalIndex(chainActive, locator);
else
pindexRescan = chainActive.Genesis();
}