Merge branch 'master' of github.com:jedmccaleb/NewCoin

Conflicts:
	src/LedgerAcquire.cpp
	src/Suppression.cpp
This commit is contained in:
jed
2012-06-19 04:58:08 -07:00
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

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