From a6e738ccfddc9f843313f199ec5e54dad2436a71 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 1 Jun 2012 13:55:45 -0700 Subject: [PATCH] Add detailed comments to explain a missing bit of code. --- src/NetworkOPs.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/NetworkOPs.cpp b/src/NetworkOPs.cpp index 9ebfdeadd..0a0da2fea 100644 --- a/src/NetworkOPs.cpp +++ b/src/NetworkOPs.cpp @@ -366,6 +366,12 @@ void NetworkOPs::checkState(const boost::system::error_code& result) switchLastClosedLedger(consensus); } + // WRITEME: Unless we are in omFULL and in the process of doing a consensus, + // we must count how many nodes share our LCL, how many nodes disagree with our LCL, + // and how many validations our LCL has. We also want to check timing to make sure + // there shouldn't be a newer LCL. We need this information to do the next three + // tests. + 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 - TODO