Skip to content

Commit a5cbf88

Browse files
committed
Updated goodc
1 parent efb1a18 commit a5cbf88

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

module/updatable_configs/collection_configs.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
2121
func 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),

0 commit comments

Comments
 (0)