From 0cbe1bfe35026ebfe22100840c78d50d5928c4da Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Sat, 14 Jul 2012 13:15:00 -0700 Subject: [PATCH] Fix a bug Arthur found. --- src/ValidationCollection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ValidationCollection.cpp b/src/ValidationCollection.cpp index 15cd9fd7d7..22bf0deb7f 100644 --- a/src/ValidationCollection.cpp +++ b/src/ValidationCollection.cpp @@ -60,14 +60,14 @@ void ValidationCollection::getValidationCount(const uint256& ledger, bool curren { for (ValidationSet::iterator vit = it->second.begin(), end = it->second.end(); vit != end; ++vit) { - bool trusted = vit->second->isTrusted(); - if (trusted && currentOnly) + bool isTrusted = vit->second->isTrusted(); + if (isTrusted && currentOnly) { uint32 closeTime = vit->second->getCloseTime(); if ((now < closeTime) || (now > (closeTime + 2 * LEDGER_MAX_INTERVAL))) trusted = false; } - if (trusted) + if (isTrusted) ++trusted; else ++untrusted;