mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Remove unneeded code that was implicated in a deadlock path.
This commit is contained in:
@@ -783,24 +783,7 @@ bool NetworkOPs::checkLastClosedLedger(const std::vector<Peer::pointer>& peerLis
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (!mAcquiringLedger->isComplete())
|
if (!mAcquiringLedger->isComplete())
|
||||||
{ // add more peers
|
|
||||||
int count = 0;
|
|
||||||
BOOST_FOREACH(Peer::ref it, peerList)
|
|
||||||
{
|
|
||||||
if (it->getClosedLedgerHash() == closedLedger)
|
|
||||||
{
|
|
||||||
++count;
|
|
||||||
mAcquiringLedger->peerHas(it);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!count)
|
|
||||||
{ // just ask everyone
|
|
||||||
BOOST_FOREACH(Peer::ref it, peerList)
|
|
||||||
if (it->isConnected())
|
|
||||||
mAcquiringLedger->peerHas(it);
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
clearNeedNetworkLedger();
|
clearNeedNetworkLedger();
|
||||||
consensus = mAcquiringLedger->getLedger();
|
consensus = mAcquiringLedger->getLedger();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user