From 73030bccd2daec831e9540d8a74efd1e0e26cf90 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Mon, 16 Dec 2019 12:01:19 -0500 Subject: [PATCH] Delete dead code relating to chainPower --- src/main.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index f79d38a4e..a695a3a64 100644 --- a/src/main.cpp +++ b/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 )