aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPatrick Lodder <[email protected]>2014-08-01 22:21:02 +0200
committerPatrick Lodder <[email protected]>2014-08-03 17:05:59 +0200
commit9e9babb76167c687540aee1f714b642316260e59 (patch)
treebd7659f6838e21f91a431be39bcec99d7ef263d0 /src/main.cpp
parentSet chain id to 0x0062 (diff)
downloaddiscoin-9e9babb76167c687540aee1f714b642316260e59.tar.xz
discoin-9e9babb76167c687540aee1f714b642316260e59.zip
Make version check in UpdateTip() consider auxpow block version
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9141f86b6..f30a3b657 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2059,7 +2059,7 @@ void static UpdateTip(CBlockIndex *pindexNew) {
const CBlockIndex* pindex = chainActive.Tip();
for (int i = 0; i < 100 && pindex != NULL; i++)
{
- if (pindex->nVersion > CBlock::CURRENT_VERSION)
+ if (pindex->nVersion > CBlock::CURRENT_VERSION && pindex->nVersion != BLOCK_VERSION_AUXPOW)
++nUpgraded;
pindex = pindex->pprev;
}