From 79cc39f9028aad4371c91a17bba799028539d2a4 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Tue, 5 Jun 2012 04:00:25 -0700 Subject: [PATCH] Tweak. --- src/LedgerConsensus.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/LedgerConsensus.cpp b/src/LedgerConsensus.cpp index 5209ba437c..dd787bafb2 100644 --- a/src/LedgerConsensus.cpp +++ b/src/LedgerConsensus.cpp @@ -155,9 +155,9 @@ bool LCTransaction::updatePosition(int seconds) // To prevent avalanche stalls, we increase the needed weight slightly over time bool newPosition; - if (seconds <= LEDGER_CONVERGE) newPosition = weight >= AV_MIN_CONSENSUS; - else if (seconds >= LEDGER_FORCE_CONVERGE) newPosition = weight >= AV_MAX_CONSENSUS; - else newPosition = weight >= AV_AVG_CONSENSUS; + if (seconds <= LEDGER_CONVERGE) newPosition = weight > AV_MIN_CONSENSUS; + else if (seconds >= LEDGER_FORCE_CONVERGE) newPosition = weight > AV_MAX_CONSENSUS; + else newPosition = weight > AV_AVG_CONSENSUS; if (newPosition == mOurPosition) return false; mOurPosition = newPosition;