Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelog/Forostovec_fix-execution-option.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Changed

- Avoid redundant WithHttpEndpoint when JWT is provided
3 changes: 2 additions & 1 deletion cmd/beacon-chain/execution/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ func FlagOptions(c *cli.Context) ([]execution.Option, error) {
}
headers := strings.Split(c.String(flags.ExecutionEngineHeaders.Name), ",")
opts := []execution.Option{
execution.WithHttpEndpoint(endpoint),
execution.WithEth1HeaderRequestLimit(c.Uint64(flags.Eth1HeaderReqLimit.Name)),
execution.WithHeaders(headers),
}
if len(jwtSecret) > 0 {
opts = append(opts, execution.WithHttpEndpointAndJWTSecret(endpoint, jwtSecret))
} else {
opts = append(opts, execution.WithHttpEndpoint(endpoint))
}
return opts, nil
}
Expand Down
Loading