mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Merge branch 'master' of github.com:jedmccaleb/NewCoin
Conflicts: src/LedgerAcquire.cpp src/Suppression.cpp
This commit is contained in:
@@ -254,7 +254,7 @@ void PeerSet::sendRequest(const newcoin::TMGetLedger& tmGL)
|
||||
while (it != mPeers.end())
|
||||
{
|
||||
if (it->expired())
|
||||
it=mPeers.erase(it);
|
||||
it = mPeers.erase(it);
|
||||
else
|
||||
{
|
||||
// FIXME: Track last peer sent to and time sent
|
||||
|
||||
@@ -15,10 +15,10 @@ bool SuppressionTable::addSuppression(const uint160& suppression)
|
||||
{
|
||||
if ((it->first + mHoldTime) < now)
|
||||
{
|
||||
for (std::list<uint160>::iterator lit = it->second.begin(), end = it->second.end();
|
||||
for (std::list<uint160>::iterator lit = it->second.begin(), end = it->second.end();
|
||||
lit != end; ++lit)
|
||||
mSuppressionMap.erase(*lit);
|
||||
it=mSuppressionTimes.erase(it);
|
||||
it = mSuppressionTimes.erase(it);
|
||||
}
|
||||
else ++it;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user