mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Configurable fetch depth.
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user