From 5a15350b0e3d6866707990445140e900c205c8d9 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Tue, 10 Dec 2019 19:03:45 -0500 Subject: [PATCH] Remove more Verus garbage --- src/main.cpp | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 8eed39563..e9bc4c561 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -152,25 +152,8 @@ namespace { bool operator()(CBlockIndex *pa, const CBlockIndex *pb) const { // First sort by most total work, ... - if (ASSETCHAINS_LWMAPOS) { - - /* Decker: - - seems we had CChainPower classes compare here from Verus, it's slow, bcz of hard - arith_uint256 math in bool operator<(const CChainPower &p1, const CChainPower &p2), - this slows down setBlockIndexCandidates.insert operations in LoadBlockIndexDB(), - so, for faster block index db loading we will use check from Verus only for LWMAPOS - enabled chains. - */ - - if (pa->chainPower > pb->chainPower) return false; - if (pa->chainPower < pb->chainPower) return true; - } - else - { - if (pa->chainPower.chainWork > pb->chainPower.chainWork) return false; - if (pa->chainPower.chainWork < pb->chainPower.chainWork) return true; - } + if (pa->chainPower.chainWork > pb->chainPower.chainWork) return false; + if (pa->chainPower.chainWork < pb->chainPower.chainWork) return true; // ... then by earliest time received, ... if (pa->nSequenceId < pb->nSequenceId) return false;