Fix inbound ledger add peers logic

This commit is contained in:
Miguel Portilla
2016-07-20 13:00:00 -04:00
committed by Nik Bougalis
parent 6c8673c7c3
commit f9fe2ef90f

View File

@@ -399,7 +399,7 @@ void InboundLedger::onTimer (bool wasProgress, ScopedLockType&)
void InboundLedger::addPeers ()
{
app_.overlay().selectPeers (*this,
(getPeerCount() > 0) ? peerCountStart : peerCountAdd,
(getPeerCount() == 0) ? peerCountStart : peerCountAdd,
ScoreHasLedger (getHash(), mSeq));
}