Reorganized cheatcatcher for build issues

This commit is contained in:
Michael Toutonghi
2018-10-10 21:46:40 -07:00
parent 99dbf2c2ed
commit 8fc4030c10
12 changed files with 234 additions and 183 deletions

View File

@@ -241,7 +241,7 @@ CBlockTemplate* CreateNewBlock(const CScript& _scriptPubKeyIn, int32_t gpucount,
CBlockIndex *ppast;
if (cheatCatcher &&
sapling && chainActive.Height() > 100 &&
(ppast = chainActive[nHeight - 100]) &&
(ppast = chainActive[nHeight - COINBASE_MATURITY]) &&
ppast->IsVerusPOSBlock() &&
cheatList.IsHeightOrGreaterInList(nHeight))
{