@@ -1550,6 +1550,24 @@ func SetP2PConfig(ctx *cli.Context, cfg *p2p.Config) {
15501550 }
15511551}
15521552
1553+ // SetBuilderConfig applies node-related command line flags to the config.
1554+ func SetBuilderConfig (ctx * cli.Context , cfg * builder.Config ) {
1555+ cfg .Enabled = ctx .IsSet (BuilderEnabled .Name )
1556+ cfg .EnableValidatorChecks = ctx .IsSet (BuilderEnableValidatorChecks .Name )
1557+ cfg .EnableLocalRelay = ctx .IsSet (BuilderEnableLocalRelay .Name )
1558+ cfg .DisableBundleFetcher = ctx .IsSet (BuilderDisableBundleFetcher .Name )
1559+ cfg .DryRun = ctx .IsSet (BuilderDryRun .Name )
1560+ cfg .BuilderSecretKey = ctx .String (BuilderSecretKey .Name )
1561+ cfg .RelaySecretKey = ctx .String (BuilderRelaySecretKey .Name )
1562+ cfg .ListenAddr = ctx .String (BuilderListenAddr .Name )
1563+ cfg .GenesisForkVersion = ctx .String (BuilderGenesisForkVersion .Name )
1564+ cfg .BellatrixForkVersion = ctx .String (BuilderBellatrixForkVersion .Name )
1565+ cfg .GenesisValidatorsRoot = ctx .String (BuilderGenesisValidatorsRoot .Name )
1566+ cfg .BeaconEndpoint = ctx .String (BuilderBeaconEndpoint .Name )
1567+ cfg .RemoteRelayEndpoint = ctx .String (BuilderRemoteRelayEndpoint .Name )
1568+ cfg .ValidationBlocklist = ctx .String (BuilderBlockValidationBlacklistSourceFilePath .Name )
1569+ }
1570+
15531571// SetNodeConfig applies node-related command line flags to the config.
15541572func SetNodeConfig (ctx * cli.Context , cfg * node.Config ) {
15551573 SetP2PConfig (ctx , & cfg .P2P )
@@ -2106,7 +2124,7 @@ func SetDNSDiscoveryDefaults(cfg *ethconfig.Config, genesis common.Hash) {
21062124// RegisterEthService adds an Ethereum client to the stack.
21072125// The second return value is the full node instance, which may be nil if the
21082126// node is running as a light client.
2109- func RegisterEthService (stack * node.Node , cfg * ethconfig.Config , bpCfg * builder.BuilderConfig ) (ethapi.Backend , * eth.Ethereum ) {
2127+ func RegisterEthService (stack * node.Node , cfg * ethconfig.Config , bpCfg * builder.Config ) (ethapi.Backend , * eth.Ethereum ) {
21102128 if cfg .SyncMode == downloader .LightSync {
21112129 backend , err := les .New (stack , cfg )
21122130 if err != nil {
0 commit comments