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; } }