revert revert of f6764fe62b (#12399)

This commit is contained in:
Potuz
2023-05-16 08:50:02 -03:00
committed by GitHub
parent b4f1fea029
commit 955a21fea4
10 changed files with 184 additions and 12 deletions

View File

@@ -72,6 +72,9 @@ type Flags struct {
// KeystoreImportDebounceInterval specifies the time duration the validator waits to reload new keys if they have
// changed on disk. This feature is for advanced use cases only.
KeystoreImportDebounceInterval time.Duration
// AggregateIntervals specifies the time durations at which we aggregate attestations preparing for forkchoice.
AggregateIntervals []time.Duration
}
var featureConfig *Flags
@@ -218,6 +221,7 @@ func ConfigureBeaconChain(ctx *cli.Context) error {
logEnabled(buildBlockParallel)
cfg.BuildBlockParallel = true
}
cfg.AggregateIntervals = []time.Duration{aggregateFirstInterval.Value, aggregateSecondInterval.Value, aggregateThirdInterval.Value}
Init(cfg)
return nil
}