diff options
| author | Patrick Lodder <[email protected]> | 2014-08-01 22:21:02 +0200 |
|---|---|---|
| committer | Patrick Lodder <[email protected]> | 2014-08-03 17:05:59 +0200 |
| commit | 9e9babb76167c687540aee1f714b642316260e59 (patch) | |
| tree | bd7659f6838e21f91a431be39bcec99d7ef263d0 /src/main.cpp | |
| parent | Set chain id to 0x0062 (diff) | |
| download | discoin-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.cpp | 2 |
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; } |