diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-06-12 16:41:21 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-06-12 16:44:36 +0200 |
commit | 8ccc07c077d338bbfc673afd1a9a188038df70d3 (patch) | |
tree | a48c9b586b8b59e08586b934e867ea40bc167854 /src/init.cpp | |
parent | ebab5d3c59558000f0e0fd18b7f26ed6f31ac21a (diff) | |
parent | 65b94545036ae6e38e79e9c7166a3ba1ddb83f66 (diff) |
Merge pull request #6256
65b9454 Use best header chain timestamps to detect partitioning (Gavin Andresen)
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 326cdf5205..b5f9a0310f 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1425,7 +1425,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) // Monitor the chain, and alert if we get blocks much quicker or slower than expected int64_t nPowTargetSpacing = Params().GetConsensus().nPowTargetSpacing; CScheduler::Function f = boost::bind(&PartitionCheck, &IsInitialBlockDownload, - boost::ref(cs_main), boost::cref(chainActive), nPowTargetSpacing); + boost::ref(cs_main), boost::cref(pindexBestHeader), nPowTargetSpacing); scheduler.scheduleEvery(f, nPowTargetSpacing); #ifdef ENABLE_WALLET |