Skip to content

Commit

Permalink
fix: missing bang
Browse files Browse the repository at this point in the history
  • Loading branch information
minhd-vu committed Dec 18, 2024
1 parent 6b19de1 commit f865c5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions provider/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

Expand Down

0 comments on commit f865c5b

Please sign in to comment.