From 413599ddb6528fe15b1735b508329cb40abad5cf Mon Sep 17 00:00:00 2001 From: Michael de Hoog Date: Thu, 7 Nov 2024 08:33:34 -1000 Subject: [PATCH] Math is hard (#16) --- op-proposer/proposer/driver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op-proposer/proposer/driver.go b/op-proposer/proposer/driver.go index 7422d59..fbee879 100644 --- a/op-proposer/proposer/driver.go +++ b/op-proposer/proposer/driver.go @@ -297,7 +297,7 @@ func (l *L2OutputSubmitter) nextOutput(ctx context.Context, latestOutput binding } count := 0 - for count < len(l.pending) && l.pending[count].To.Number < latestSafe.Number { + for count < len(l.pending) && l.pending[count].To.Number <= latestSafe.Number { count++ } if count <= 0 {