Delete dead code relating to chainPower

This commit is contained in:
Duke Leto
2019-12-16 12:01:19 -05:00
parent 1e980895b8
commit 73030bccd2

View File

@@ -2461,8 +2461,6 @@ bool IsInitialBlockDownload()
} }
bool state; bool state;
arith_uint256 bigZero = arith_uint256();
arith_uint256 minWork = UintToArith256(chainParams.GetConsensus().nMinimumChainWork);
CBlockIndex *ptr = chainActive.Tip(); CBlockIndex *ptr = chainActive.Tip();
if (ptr == NULL) if (ptr == NULL)
@@ -2470,11 +2468,6 @@ bool IsInitialBlockDownload()
//fprintf(stderr,"nullptr in IsInitialDownload\n"); //fprintf(stderr,"nullptr in IsInitialDownload\n");
return true; return true;
} }
if (0 && ptr->chainPower < CChainPower(ptr, bigZero, minWork))
{
fprintf(stderr,"chainpower insufficient in IsInitialDownload\n");
return true;
}
state = ((chainActive.Height() < ptr->GetHeight() - 24*60) || state = ((chainActive.Height() < ptr->GetHeight() - 24*60) ||
ptr->GetBlockTime() < (GetTime() - nMaxTipAge)); ptr->GetBlockTime() < (GetTime() - nMaxTipAge));
if ( KOMODO_INSYNC != 0 ) if ( KOMODO_INSYNC != 0 )