diff --git a/src/ValidationCollection.cpp b/src/ValidationCollection.cpp index 28cb2a59d..74039ad00 100644 --- a/src/ValidationCollection.cpp +++ b/src/ValidationCollection.cpp @@ -177,8 +177,9 @@ void ValidationCollection::addDeadLedger(const uint256& ledger) { boost::mutex::scoped_lock sl(mValidationLock); - if (isDeadLedger(ledger)) - return; + BOOST_FOREACH(const uint256& it, mDeadLedgers) + if (it == ledger) + return; mDeadLedgers.push_back(ledger); if (mDeadLedgers.size() >= 32)