From c822d29faee9f04a1bca60e8ee24aace8b92eed0 Mon Sep 17 00:00:00 2001 From: Diego Ximenes Date: Thu, 3 Oct 2024 16:01:55 -0300 Subject: [PATCH] Sets duration of ephemeral errors to 10min --- assertions/confirmation.go | 2 +- assertions/poster.go | 2 +- challenge-manager/chain-watcher/watcher.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assertions/confirmation.go b/assertions/confirmation.go index 75c09ea90..e4986f9ef 100644 --- a/assertions/confirmation.go +++ b/assertions/confirmation.go @@ -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() diff --git a/assertions/poster.go b/assertions/poster.go index 053d40f37..0e8b1cbd6 100644 --- a/assertions/poster.go +++ b/assertions/poster.go @@ -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 { diff --git a/challenge-manager/chain-watcher/watcher.go b/challenge-manager/chain-watcher/watcher.go index 5774f3d53..12c35ea20 100644 --- a/challenge-manager/chain-watcher/watcher.go +++ b/challenge-manager/chain-watcher/watcher.go @@ -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.