Skip to content

Commit

Permalink
Remove duplicate flags from relay (#944)
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-shim authored Dec 3, 2024
1 parent a84eff9 commit 08d1c90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion relay/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func NewConfig(ctx *cli.Context) (Config, error) {
InternalGetCoefficientsTimeout: ctx.Duration(flags.InternalGetCoefficientsTimeoutFlag.Name),
},
},
EthClientConfig: geth.ReadEthClientConfig(ctx),
EthClientConfig: geth.ReadEthClientConfigRPCOnly(ctx),
BLSOperatorStateRetrieverAddr: ctx.String(flags.BlsOperatorStateRetrieverAddrFlag.Name),
EigenDAServiceManagerAddr: ctx.String(flags.EigenDAServiceManagerAddrFlag.Name),
ChainStateConfig: thegraph.ReadCLIConfig(ctx),
Expand Down
12 changes: 2 additions & 10 deletions relay/cmd/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"github.com/Layr-Labs/eigenda/common"
"github.com/Layr-Labs/eigenda/common/aws"
"github.com/Layr-Labs/eigenda/common/geth"
"github.com/Layr-Labs/eigenda/core/thegraph"
"github.com/urfave/cli"
)

Expand Down Expand Up @@ -204,13 +205,6 @@ var (
Required: true,
EnvVar: common.PrefixEnvVar(envVarPrefix, "EIGEN_DA_SERVICE_MANAGER_ADDR"),
}
IndexerPullIntervalFlag = cli.DurationFlag{
Name: common.PrefixFlag(FlagPrefix, "indexer-pull-interval"),
Usage: "Interval to pull from the indexer",
Required: false,
EnvVar: common.PrefixEnvVar(envVarPrefix, "INDEXER_PULL_INTERVAL"),
Value: 5 * time.Minute,
}
AuthenticationKeyCacheSizeFlag = cli.IntFlag{
Name: common.PrefixFlag(FlagPrefix, "authentication-key-cache-size"),
Usage: "Max number of items in the authentication key cache",
Expand Down Expand Up @@ -289,8 +283,6 @@ var requiredFlags = []cli.Flag{
RelayIDsFlag,
BlsOperatorStateRetrieverAddrFlag,
EigenDAServiceManagerAddrFlag,
AuthenticationTimeoutFlag,
AuthenticationDisabledFlag,
}

var optionalFlags = []cli.Flag{
Expand All @@ -316,7 +308,6 @@ var optionalFlags = []cli.Flag{
MaxGetChunkBytesPerSecondClientFlag,
GetChunkBytesBurstinessClientFlag,
MaxConcurrentGetChunkOpsClientFlag,
IndexerPullIntervalFlag,
AuthenticationKeyCacheSizeFlag,
AuthenticationTimeoutFlag,
AuthenticationDisabledFlag,
Expand All @@ -336,4 +327,5 @@ func init() {
Flags = append(Flags, common.LoggerCLIFlags(envVarPrefix, FlagPrefix)...)
Flags = append(Flags, aws.ClientFlags(envVarPrefix, FlagPrefix)...)
Flags = append(Flags, geth.EthClientFlags(envVarPrefix)...)
Flags = append(Flags, thegraph.CLIFlags(envVarPrefix)...)
}

0 comments on commit 08d1c90

Please sign in to comment.