aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-09-29 05:56:57 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2014-09-29 06:06:57 +0200
commitbf3a5dd7f0c9da14da1ebcef49d4eeff5fe14419 (patch)
tree4012442be778f55be17e7807399e7e00a8a8837a /src/init.cpp
parenta38eaea082692d0dac6996dcace2084cd7f29179 (diff)
parente8b5f0d549b1b76611c7374bed9ceec7d09fa847 (diff)
Merge pull request #4796
e8b5f0d Move CBlockIndex, CChain and related code out of main (jtimon) 6db83db Decouple CChain from mapBlockIndex (jtimon)
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 27594ecbe3..85f4d360d2 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -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();
}