From 4d2e5acf47ee240058882103db837caae16fd46d Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 1 Jun 2012 13:54:16 -0700 Subject: [PATCH] For now, ratchet up network states quickly --- src/NetworkOPs.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/NetworkOPs.cpp b/src/NetworkOPs.cpp index 64eac318f7..9ebfdeadd5 100644 --- a/src/NetworkOPs.cpp +++ b/src/NetworkOPs.cpp @@ -368,7 +368,7 @@ void NetworkOPs::checkState(const boost::system::error_code& result) if (mMode == omCONNECTED) { // count number of peers that agree with us and UNL nodes whose validations we have for LCL - // if the ledger is good enough, go to omTRACKING + // if the ledger is good enough, go to omTRACKING - TODO if (!switchLedgers) setMode(omTRACKING); } @@ -376,7 +376,8 @@ 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 + // check if the ledger is bad enough to go to omCONNECTED -- TODO + if (!switchLedgers) setMode(omFULL); } if (mMode == omFULL)