Skip to content

Commit 37f754d

Browse files
Correctly reset handlers for gasEstimation related ephemeral error and fix Start and End values in FilterLogs query (#735)
1 parent a2e3755 commit 37f754d

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

assertions/confirmation.go

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ func (m *Manager) keepTryingAssertionConfirmation(ctx context.Context, assertion
108108
}
109109

110110
exceedsMaxMempoolSizeEphemeralErrorHandler.Reset()
111+
gasEstimationEphemeralErrorHandler.Reset()
111112

112113
if confirmed {
113114
assertionConfirmedCounter.Inc(1)

assertions/poster.go

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ func (m *Manager) postAssertionRoutine(ctx context.Context) {
6464
}
6565
} else {
6666
exceedsMaxMempoolSizeEphemeralErrorHandler.Reset()
67+
gasEstimationEphemeralErrorHandler.Reset()
6768
}
6869

6970
select {

challenge-manager/chain-watcher/watcher.go

+6
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,11 @@ func (w *Watcher) Start(ctx context.Context) {
256256
log.Error("Could not get latest header", "err", err)
257257
continue
258258
}
259+
// AssertionChain's rpcHeadBlockNumber is set to finalized and this might occur due to l1 backends of load balancer
260+
// not being in consensus wrt finalized. In which case we ignore and continue
261+
if fromBlock > toBlock {
262+
continue
263+
}
259264
if fromBlock == toBlock {
260265
w.initialSyncCompleted.Store(true)
261266
continue
@@ -912,6 +917,7 @@ func (w *Watcher) confirmAssertionByChallengeWinner(ctx context.Context, edge pr
912917
}
913918

914919
exceedsMaxMempoolSizeEphemeralErrorHandler.Reset()
920+
gasEstimationEphemeralErrorHandler.Reset()
915921

916922
if confirmed {
917923
assertionConfirmedCounter.Inc(1)

0 commit comments

Comments
 (0)