Skip to content

Commit

Permalink
remove cli flag
Browse files Browse the repository at this point in the history
  • Loading branch information
avalonche committed Jul 13, 2022
1 parent f14af06 commit bc92547
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/mev-boost/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var (
defaultRelayTimeoutMs = getEnvInt("RELAY_TIMEOUT_MS", 2000) // timeout for all the requests to the relay
defaultRelayCheck = os.Getenv("RELAY_STARTUP_CHECK") != ""
defaultGenesisForkVersion = getEnv("GENESIS_FORK_VERSION", "")
defaultMaxHeaderBytes = getEnvInt("MAX_HEADER_BYTES", 4000) // max header byte size for requests for dos prevention
maxHeaderBytes = getEnvInt("MAX_HEADER_BYTES", 4000) // max header byte size for requests for dos prevention

// cli flags
logJSON = flag.Bool("json", defaultLogJSON, "log in JSON format instead of text")
Expand All @@ -38,7 +38,6 @@ var (
relayURLs = flag.String("relays", "", "relay urls - single entry or comma-separated list (scheme://pubkey@host)")
relayTimeoutMs = flag.Int("request-timeout", defaultRelayTimeoutMs, "timeout for requests to a relay [ms]")
relayCheck = flag.Bool("relay-check", defaultRelayCheck, "check relay status on startup and on the status API call")
maxHeaderBytes = flag.Int("max-header-bytes", defaultMaxHeaderBytes, "max byte size of the header")

// helpers
useGenesisForkVersionMainnet = flag.Bool("mainnet", false, "use Mainnet genesis fork version 0x00000000 (for signature validation)")
Expand Down Expand Up @@ -104,7 +103,7 @@ func main() {
GenesisForkVersionHex: genesisForkVersionHex,
RelayRequestTimeout: relayTimeout,
RelayCheck: *relayCheck,
MaxHeaderBytes: *maxHeaderBytes,
MaxHeaderBytes: maxHeaderBytes,
}
server, err := server.NewBoostService(opts)
if err != nil {
Expand Down

0 comments on commit bc92547

Please sign in to comment.