Decrease min time between queries in lc (#4225)
This commit is contained in:
parent
1293e36148
commit
f141ae57d3
|
@ -382,7 +382,7 @@ func fetchTime(
|
||||||
of NextPeriod:
|
of NextPeriod:
|
||||||
chronos.seconds(
|
chronos.seconds(
|
||||||
(SLOTS_PER_SYNC_COMMITTEE_PERIOD * SECONDS_PER_SLOT).int64)
|
(SLOTS_PER_SYNC_COMMITTEE_PERIOD * SECONDS_PER_SLOT).int64)
|
||||||
minDelay = max(remainingTime div 8, chronos.seconds(30))
|
minDelay = max(remainingTime div 8, chronos.seconds(10))
|
||||||
jitterSeconds = (minDelay * 2).seconds
|
jitterSeconds = (minDelay * 2).seconds
|
||||||
jitterDelay = chronos.seconds(self.rng[].rand(jitterSeconds).int64)
|
jitterDelay = chronos.seconds(self.rng[].rand(jitterSeconds).int64)
|
||||||
return wallTime + minDelay + jitterDelay
|
return wallTime + minDelay + jitterDelay
|
||||||
|
|
Loading…
Reference in New Issue