From f865c5b77c3586a014ff30b92af0601f9b50083f Mon Sep 17 00:00:00 2001 From: minhd-vu Date: Wed, 18 Dec 2024 06:14:53 -0500 Subject: [PATCH] fix: missing bang --- provider/rpc.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/provider/rpc.go b/provider/rpc.go index 6999746..1c2c1fc 100644 --- a/provider/rpc.go +++ b/provider/rpc.go @@ -1530,9 +1530,9 @@ func (r *RPCProvider) refreshRollupVerifyBatchesTrustedAggregator(ctx context.Co pessimistic := event.NumBatch == 0 && event.StateRoot == [32]byte{} if rollup.LastVerifiedBatch != nil { - // Here, pessimistic chains have to be handled differently because the - // NumBatch will always be 0. The last verified timestamp is used to - // determine if the event has already been seen. + // Here, pessimistic chains are handled differently because the NumBatch + // will always be 0. The last verified timestamp is used to determine if + // the event has already been seen. // // There is an edge case here where if both events are included in the // same block, there will be a missing time between verified batches @@ -1541,7 +1541,7 @@ func (r *RPCProvider) refreshRollupVerifyBatchesTrustedAggregator(ctx context.Co continue } - if pessimistic && *rollup.LastVerifiedBatch >= event.NumBatch { + if !pessimistic && *rollup.LastVerifiedBatch >= event.NumBatch { continue }