mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02: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:
commit
bf3a5dd7f0
6 changed files with 461 additions and 442 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue