diff --git a/src/ValidationCollection.cpp b/src/ValidationCollection.cpp index cd3f981f2..21888dffa 100644 --- a/src/ValidationCollection.cpp +++ b/src/ValidationCollection.cpp @@ -174,6 +174,9 @@ boost::unordered_map ValidationCollection::getCurrentValidations() void ValidationCollection::addDeadLedger(const uint256& ledger) { + for (std::list::iterator it = mDeadLedgers.begin(), end = mDeadLedgers.end(); it != end; ++it) + if (*it == ledger) + return; mDeadLedgers.push_back(ledger); if (mDeadLedgers.size() >= 128) mDeadLedgers.pop_front();