aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2015-07-09 22:06:41 +0100
committerRoss Nicoll <[email protected]>2015-07-19 16:42:22 +0000
commit949b1ccd88ff13c74a3c1a7b9faa7f36c1085904 (patch)
tree378278514e847511b46e5f8d67fd6e3a61e80fe7 /src/init.cpp
parentMerge pull request #1200 from rnicoll/1.10-auxpow-clean (diff)
downloaddiscoin-949b1ccd88ff13c74a3c1a7b9faa7f36c1085904.tar.xz
discoin-949b1ccd88ff13c74a3c1a7b9faa7f36c1085904.zip
Modify chain consensus parameters to be height aware
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 0923dcb3a..fa8e4317e 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1150,7 +1150,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
// If the loaded chain has a wrong genesis, bail out immediately
// (we're likely using a testnet datadir, or the other way around).
- if (!mapBlockIndex.empty() && mapBlockIndex.count(chainparams.GetConsensus().hashGenesisBlock) == 0)
+ if (!mapBlockIndex.empty() && mapBlockIndex.count(chainparams.GetConsensus(0).hashGenesisBlock) == 0)
return InitError(_("Incorrect or no genesis block found. Wrong datadir for network?"));
// Initialize the block index (no-op if non-empty database was already loaded)