Skip to content

Commit

Permalink
cmd: bind publish timeout on exit
Browse files Browse the repository at this point in the history
Allow exit commands to specify a publish timeout.
  • Loading branch information
gsora committed Jun 7, 2024
1 parent ed1d55a commit e12eb66
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/exit_broadcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func newBcastFullExitCmd(runFunc func(context.Context, exitConfig) error) *cobra
{beaconNodeEndpoints, true},
{exitFromFile, false},
{beaconNodeTimeout, false},
{publishTimeout, false},

Check warning on line 59 in cmd/exit_broadcast.go

View check run for this annotation

Codecov / codecov/patch

cmd/exit_broadcast.go#L59

Added line #L59 was not covered by tests
})

bindLogFlags(cmd.Flags(), &config.Log)
Expand Down
1 change: 1 addition & 0 deletions cmd/exit_fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func newFetchExitCmd(runFunc func(context.Context, exitConfig) error) *cobra.Com
{lockFilePath, false},
{validatorPubkey, true},
{fetchedExitPath, false},
{publishTimeout, false},

Check warning on line 50 in cmd/exit_fetch.go

View check run for this annotation

Codecov / codecov/patch

cmd/exit_fetch.go#L50

Added line #L50 was not covered by tests
})

bindLogFlags(cmd.Flags(), &config.Log)
Expand Down
1 change: 1 addition & 0 deletions cmd/exit_sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func newSubmitPartialExitCmd(runFunc func(context.Context, exitConfig) error) *c
{validatorIndex, false},
{beaconNodeEndpoints, true},
{beaconNodeTimeout, false},
{publishTimeout, false},

Check warning on line 54 in cmd/exit_sign.go

View check run for this annotation

Codecov / codecov/patch

cmd/exit_sign.go#L54

Added line #L54 was not covered by tests
})

bindLogFlags(cmd.Flags(), &config.Log)
Expand Down

0 comments on commit e12eb66

Please sign in to comment.