Skip to content

Commit

Permalink
Sets duration of ephemeral errors to 10min
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoximenes committed Oct 3, 2024
1 parent 8a9f80e commit c822d29
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assertions/confirmation.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (m *Manager) keepTryingAssertionConfirmation(ctx context.Context, assertion
}

backoffLogLevel := time.Second
exceedsMaxMempoolSizeEphemeralErrorHandler := utillog.NewEphemeralErrorHandler(5*time.Minute, "posting this transaction will exceed max mempool size", 0)
exceedsMaxMempoolSizeEphemeralErrorHandler := utillog.NewEphemeralErrorHandler(10*time.Minute, "posting this transaction will exceed max mempool size", 0)

ticker := time.NewTicker(m.confirmationAttemptInterval)
defer ticker.Stop()
Expand Down
2 changes: 1 addition & 1 deletion assertions/poster.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (m *Manager) postAssertionRoutine(ctx context.Context) {
}

backoffLogLevel := time.Second
exceedsMaxMempoolSizeEphemeralErrorHandler := utillog.NewEphemeralErrorHandler(5*time.Minute, "posting this transaction will exceed max mempool size", 0)
exceedsMaxMempoolSizeEphemeralErrorHandler := utillog.NewEphemeralErrorHandler(10*time.Minute, "posting this transaction will exceed max mempool size", 0)

log.Info("Ready to post")
if _, err := m.PostAssertion(ctx); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion challenge-manager/chain-watcher/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ func (w *Watcher) confirmAssertionByChallengeWinner(ctx context.Context, edge pr
)

backoffLogLevel := time.Second
exceedsMaxMempoolSizeEphemeralErrorHandler := utillog.NewEphemeralErrorHandler(5*time.Minute, "posting this transaction will exceed max mempool size", 0)
exceedsMaxMempoolSizeEphemeralErrorHandler := utillog.NewEphemeralErrorHandler(10*time.Minute, "posting this transaction will exceed max mempool size", 0)

// Compute the number of blocks until we reach the assertion's
// deadline for confirmation.
Expand Down

0 comments on commit c822d29

Please sign in to comment.