Browse Source

Delete dead code relating to chainPower

pull/58/head
Duke Leto 5 years ago
parent
commit
73030bccd2
  1. 7
      src/main.cpp

7
src/main.cpp

@ -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 )

Loading…
Cancel
Save