Configurable fetch depth.

This commit is contained in:
JoelKatz
2014-02-13 15:37:28 -08:00
committed by Vinnie Falco
parent f2beb82b97
commit 996326a00e
8 changed files with 86 additions and 22 deletions

View File

@@ -1445,6 +1445,13 @@ private:
uMin = 0;
uMax = 0;
}
else
{
// Don't advertise ledgers we're not willing to serve
uint32 early = getApp().getLedgerMaster().getEarliestFetch ();
if (uMin < early)
uMin = early;
}
s.set_firstseq (uMin);
s.set_lastseq (uMax);
getApp ().getPeers ().foreach (send_always (