From fb7de2e8b1df2a9b812c172e871122d126a990d2 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Wed, 20 Jun 2012 18:41:56 -0700 Subject: [PATCH] Fix. --- src/NetworkOPs.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/NetworkOPs.cpp b/src/NetworkOPs.cpp index f92a016f9..0aac602b2 100644 --- a/src/NetworkOPs.cpp +++ b/src/NetworkOPs.cpp @@ -372,8 +372,11 @@ bool NetworkOPs::checkLastClosedLedger(const std::vector& peerLis Ledger::pointer currentClosed = mLedgerMaster->getClosedLedger(); uint256 closedLedger = currentClosed->getHash(); ValidationCount& ourVC = ledgers[closedLedger]; - ++ourVC.nodesUsing; - ourVC.highNode = theApp->getWallet().getNodePublic(); + if (mHaveLCL) + { + ++ourVC.nodesUsing; + ourVC.highNode = theApp->getWallet().getNodePublic(); + } for (std::vector::const_iterator it = peerList.begin(), end = peerList.end(); it != end; ++it) {