File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ var _ module.BySealingLagRateLimiterConfigSetter = (*bySealingLagRateLimiterConf
1919// DefaultBySealingLagRateLimiterConfigs returns a default config for collection throttling.
2020// It performs binary throttling once the sealing lag reaches max sealing lag.
2121func DefaultBySealingLagRateLimiterConfigs () module.BySealingLagRateLimiterConfigSetter {
22+ // default config results in binary throttling once the sealing lag reaches max sealing lag, before that no throttling
23+ // is being applied. The 600 blocks is chosen as it is roughly 5 minutes.
24+ // 2 blocks / second * 60 seconds * 5 minutes = 600 blocks
2225 return & bySealingLagRateLimiterConfigs {
2326 minSealingLag : atomic .NewUint32 (300 ),
2427 maxSealingLag : atomic .NewUint32 (600 ),
You can’t perform that action at this time.
0 commit comments