From 56cee3f5df0413ac19f361e827453094fc22d25d Mon Sep 17 00:00:00 2001 From: David Date: Mon, 15 Jan 2024 13:02:22 +0800 Subject: [PATCH] feat(prover): increase wait time before sending to `proofWindowExpiredCh` (#505) --- prover/prover.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prover/prover.go b/prover/prover.go index 95e897653..6e5f26e01 100644 --- a/prover/prover.go +++ b/prover/prover.go @@ -775,8 +775,8 @@ func (p *Prover) handleNewBlockProposedEvent(ctx context.Context, e *bindings.Ta "blockID", e.BlockId, ) time.AfterFunc( - // Add another 12 seconds, to ensure one more L1 block will be mined before the proof submission - timeToExpire+12*time.Second, + // Add another 60 seconds, to ensure one more L1 block will be mined before the proof submission + timeToExpire+60*time.Second, func() { p.proofWindowExpiredCh <- e }, ) }