Delete dead code relating to chainPower
This commit is contained in:
@@ -2461,8 +2461,6 @@ bool IsInitialBlockDownload()
|
||||
}
|
||||
|
||||
bool state;
|
||||
arith_uint256 bigZero = arith_uint256();
|
||||
arith_uint256 minWork = UintToArith256(chainParams.GetConsensus().nMinimumChainWork);
|
||||
CBlockIndex *ptr = chainActive.Tip();
|
||||
|
||||
if (ptr == NULL)
|
||||
@@ -2470,11 +2468,6 @@ bool IsInitialBlockDownload()
|
||||
//fprintf(stderr,"nullptr in IsInitialDownload\n");
|
||||
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) ||
|
||||
ptr->GetBlockTime() < (GetTime() - nMaxTipAge));
|
||||
if ( KOMODO_INSYNC != 0 )
|
||||
|
||||
Reference in New Issue
Block a user