From 2e40ad2da688098ae6030c428124000a66109c8c Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Wed, 20 Jun 2012 02:31:24 -0700 Subject: [PATCH] Cleanup. --- src/NetworkOPs.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/NetworkOPs.cpp b/src/NetworkOPs.cpp index 7941726ac0..3fb47feb7e 100644 --- a/src/NetworkOPs.cpp +++ b/src/NetworkOPs.cpp @@ -334,14 +334,11 @@ void NetworkOPs::checkState(const boost::system::error_code& result) // check if the ledger is good enough to go to omFULL // Note: Do not go to omFULL if we don't have the previous ledger // check if the ledger is bad enough to go to omCONNECTED -- TODO - if (theConfig.VALIDATION_SEED.isValid()) - { - if (theApp->getOPs().getNetworkTimeNC() < - (theApp->getMasterLedger().getCurrentLedger()->getCloseTimeNC() + 4)) - setMode(omFULL); - else - Log(lsWARNING) << "Too late to go to full, try next ledger"; - } + if (theApp->getOPs().getNetworkTimeNC() < + (theApp->getMasterLedger().getCurrentLedger()->getCloseTimeNC() + 4)) + setMode(omFULL); + else + Log(lsWARNING) << "Too late to go to full, will try in consensus window"; } if (mMode == omFULL)