Skip to content

Commit

Permalink
fix(cli): payload builder attributes (#1415)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocnc2 authored Jun 10, 2024
1 parent fc4ed64 commit bfdc14c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
27 changes: 18 additions & 9 deletions mod/node-core/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ func ReadConfigFromAppOpts(opts servertypes.AppOptions) (*Config, error) {
func AddBeaconKitFlags(startCmd *cobra.Command) {
defaultCfg := DefaultConfig()
startCmd.Flags().String(
flags.JWTSecretPath, defaultCfg.Engine.JWTSecretPath,
"path to the execution client secret")
flags.JWTSecretPath,
defaultCfg.Engine.JWTSecretPath,
"path to the execution client secret",
)
startCmd.Flags().String(
flags.RPCDialURL, defaultCfg.Engine.RPCDialURL.String(), "rpc dial url")
startCmd.Flags().Uint64(
Expand All @@ -120,21 +122,28 @@ func AddBeaconKitFlags(startCmd *cobra.Command) {
startCmd.Flags().Duration(
flags.RPCStartupCheckInterval,
defaultCfg.Engine.RPCStartupCheckInterval,
"rpc startup check interval")
startCmd.Flags().Duration(flags.RPCJWTRefreshInterval,
"rpc startup check interval",
)
startCmd.Flags().Duration(
flags.RPCJWTRefreshInterval,
defaultCfg.Engine.RPCJWTRefreshInterval,
"rpc jwt refresh interval")
startCmd.Flags().String(flags.SuggestedFeeRecipient,
"rpc jwt refresh interval",
)
startCmd.Flags().String(
flags.SuggestedFeeRecipient,
defaultCfg.PayloadBuilder.SuggestedFeeRecipient.Hex(),
"suggested fee recipient",
)
startCmd.Flags().String(flags.KZGTrustedSetupPath,
startCmd.Flags().String(
flags.KZGTrustedSetupPath,
defaultCfg.KZG.TrustedSetupPath,
"kzg trusted setup path",
)
startCmd.Flags().String(flags.KZGImplementation,
startCmd.Flags().String(
flags.KZGImplementation,
defaultCfg.KZG.Implementation,
"kzg implementation")
"kzg implementation",
)
}

// AddToSFlag adds the terms of service flag to the given command.
Expand Down
7 changes: 5 additions & 2 deletions mod/node-core/pkg/config/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,15 @@ const (
BeaconKitAcceptTos = beaconKitRoot + "accept-tos"

// Builder Config.
builderRoot = beaconKitRoot + "builder."
builderRoot = beaconKitRoot + "payload-builder."
SuggestedFeeRecipient = builderRoot + "suggested-fee-recipient"
Graffiti = builderRoot + "graffiti"
LocalBuilderEnabled = builderRoot + "local-builder-enabled"
LocalBuildPayloadTimeout = builderRoot + "local-build-payload-timeout"

// Validator Config.
validatorRoot = beaconKitRoot + "validator."
Graffiti = validatorRoot + "graffiti"

// Engine Config.
engineRoot = beaconKitRoot + "engine."
RPCDialURL = engineRoot + "rpc-dial-url"
Expand Down

0 comments on commit bfdc14c

Please sign in to comment.