From 1892e7e00ac9d8aaeb17f226581582c986ac6bba Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 3 Aug 2012 04:11:52 -0700 Subject: [PATCH] Some extra debug. --- src/ValidationCollection.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/ValidationCollection.cpp b/src/ValidationCollection.cpp index acfe291421..c8ba948560 100644 --- a/src/ValidationCollection.cpp +++ b/src/ValidationCollection.cpp @@ -150,10 +150,18 @@ boost::unordered_map ValidationCollection::getCurrentValidations() it = mCurrentValidations.erase(it); else { - if (pair.newest) - ++ret[pair.newest->getLedgerHash()]; if (pair.oldest) + { + Log(lsTRACE) << "OLD " << pair.oldest->getLedgerHash().GetHex() << " " << + boost::lexical_cast(pair.oldest->getCloseTime()); ++ret[pair.oldest->getLedgerHash()]; + } + if (pair.newest) + { + Log(lsTRACE) << "NEW " << pair.newest->getLedgerHash().GetHex() << " " << + boost::lexical_cast(pair.newest->getCloseTime()); + ++ret[pair.newest->getLedgerHash()]; + } ++it; } }