mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Merge pull request #4796
e8b5f0dMove CBlockIndex, CChain and related code out of main (jtimon)6db83dbDecouple CChain from mapBlockIndex (jtimon)
This commit is contained in:
@@ -1159,7 +1159,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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user