mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Decouple CChain from mapBlockIndex
This commit is contained in:
parent
eecd3c0fb0
commit
6db83db3eb
3 changed files with 10 additions and 9 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue