aboutsummaryrefslogtreecommitdiff
path: root/src/txdb.cpp
diff options
context:
space:
mode:
authorJorge Timón <jtimon@jtimon.cc>2015-02-15 02:21:42 +0100
committerJorge Timón <jtimon@jtimon.cc>2015-03-26 00:47:51 +0100
commitd698ef690f62c08676dcf9ddc0988e23aa81cbff (patch)
treed2c52a3b81167039a3991b0809c958862752a8de /src/txdb.cpp
parentbd006110fb51f1fc0cbbeef3ed6eaae66b296d8c (diff)
Consensus: Refactor: Decouple pow.o from chainparams.o
Diffstat (limited to 'src/txdb.cpp')
-rw-r--r--src/txdb.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/txdb.cpp b/src/txdb.cpp
index f328150289..df9ff8d8c9 100644
--- a/src/txdb.cpp
+++ b/src/txdb.cpp
@@ -5,6 +5,8 @@
#include "txdb.h"
+#include "chainparams.h"
+#include "hash.h"
#include "main.h"
#include "pow.h"
#include "uint256.h"
@@ -223,7 +225,7 @@ bool CBlockTreeDB::LoadBlockIndexGuts()
pindexNew->nStatus = diskindex.nStatus;
pindexNew->nTx = diskindex.nTx;
- if (!CheckProofOfWork(pindexNew->GetBlockHash(), pindexNew->nBits))
+ if (!CheckProofOfWork(pindexNew->GetBlockHash(), pindexNew->nBits, Params().GetConsensus()))
return error("LoadBlockIndex(): CheckProofOfWork failed: %s", pindexNew->ToString());
pcursor->Next();