aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-06-12 16:41:21 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-06-12 16:44:36 +0200
commit8ccc07c077d338bbfc673afd1a9a188038df70d3 (patch)
treea48c9b586b8b59e08586b934e867ea40bc167854 /src/init.cpp
parentebab5d3c59558000f0e0fd18b7f26ed6f31ac21a (diff)
parent65b94545036ae6e38e79e9c7166a3ba1ddb83f66 (diff)
downloadbitcoin-8ccc07c077d338bbfc673afd1a9a188038df70d3.tar.xz
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.cpp2
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