diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-06-25 09:14:14 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-06-25 09:14:36 +0200 |
| commit | 208bf5b9e0a86900bddf5722dc192c3262480e36 (patch) | |
| tree | b70a86a5daf38ff1846a58340aefb27779d693e0 /src/txdb.cpp | |
| parent | Merge pull request #4390 (diff) | |
| parent | move pow constants to chainparams (diff) | |
| download | discoin-208bf5b9e0a86900bddf5722dc192c3262480e36.tar.xz discoin-208bf5b9e0a86900bddf5722dc192c3262480e36.zip | |
Merge pull request #3839
fd704c7 move pow constants to chainparams (jtimon)
df852d2 Refactor proof of work related functions out of main (jtimon)
Diffstat (limited to 'src/txdb.cpp')
| -rw-r--r-- | src/txdb.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/txdb.cpp b/src/txdb.cpp index 4eab8525a..92137f71f 100644 --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -6,6 +6,7 @@ #include "txdb.h" #include "core.h" +#include "pow.h" #include "uint256.h" #include <stdint.h> @@ -212,8 +213,8 @@ bool CBlockTreeDB::LoadBlockIndexGuts() pindexNew->nStatus = diskindex.nStatus; pindexNew->nTx = diskindex.nTx; - if (!pindexNew->CheckIndex()) - return error("LoadBlockIndex() : CheckIndex failed: %s", pindexNew->ToString()); + if (!CheckProofOfWork(pindexNew->GetBlockHash(), pindexNew->nBits)) + return error("LoadBlockIndex() : CheckProofOfWork failed: %s", pindexNew->ToString()); pcursor->Next(); } else { |