Build Blocks in Parallel Permanently (#13008)

This commit is contained in:
Nishant Das
2023-10-05 21:45:11 +08:00
committed by GitHub
parent f9a40ef111
commit ffaef83634
6 changed files with 15 additions and 84 deletions

View File

@@ -69,8 +69,7 @@ type Flags struct {
PrepareAllPayloads bool // PrepareAllPayloads informs the engine to prepare a block on every slot.
BuildBlockParallel bool // BuildBlockParallel builds beacon block for proposer in parallel.
AggregateParallel bool // AggregateParallel aggregates attestations in parallel.
AggregateParallel bool // AggregateParallel aggregates attestations in parallel.
// 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.
@@ -237,11 +236,6 @@ func ConfigureBeaconChain(ctx *cli.Context) error {
logEnabled(prepareAllPayloads)
cfg.PrepareAllPayloads = true
}
cfg.BuildBlockParallel = true
if ctx.IsSet(disableBuildBlockParallel.Name) {
logEnabled(disableBuildBlockParallel)
cfg.BuildBlockParallel = false
}
cfg.AggregateParallel = true
if ctx.IsSet(disableAggregateParallel.Name) {
logEnabled(disableAggregateParallel)

View File

@@ -48,6 +48,11 @@ var (
Usage: deprecatedUsage,
Hidden: true,
}
deprecatedDisableBuildBlockParallel = &cli.BoolFlag{
Name: "disable-build-block-parallel",
Usage: deprecatedUsage,
Hidden: true,
}
)
// Deprecated flags for both the beacon node and validator client.
@@ -60,6 +65,7 @@ var deprecatedFlags = []cli.Flag{
deprecatedEnableRegistrationCache,
deprecatedAggregateParallel,
deprecatedEnableOptionalEngineMethods,
deprecatedDisableBuildBlockParallel,
}
// deprecatedBeaconFlags contains flags that are still used by other components

View File

@@ -140,10 +140,6 @@ var (
Name: "prepare-all-payloads",
Usage: "Informs the engine to prepare all local payloads. Useful for relayers and builders",
}
disableBuildBlockParallel = &cli.BoolFlag{
Name: "disable-build-block-parallel",
Usage: "Disables building a beacon block in parallel for consensus and execution",
}
enableEIP4881 = &cli.BoolFlag{
Name: "enable-eip-4881",
Usage: "Enables the deposit tree specified in EIP4881",
@@ -211,7 +207,6 @@ var BeaconChainFlags = append(deprecatedBeaconFlags, append(deprecatedFlags, []c
enableVerboseSigVerification,
disableOptionalEngineMethods,
prepareAllPayloads,
disableBuildBlockParallel,
aggregateFirstInterval,
aggregateSecondInterval,
aggregateThirdInterval,