Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
feat: update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Oct 19, 2023
1 parent 88548c5 commit 183078c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions prover/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,14 @@ func (p *Prover) onBlockProposed(

if p.cfg.ProveUnassignedBlocks {
log.Info(
"Add proposed block to wait for proof window expiration", "blockID", event.BlockId)
time.AfterFunc(timeToExpire+12*time.Second, func() { p.proofWindowExpiredCh <- event })
"Add proposed block to wait for proof window expiration",
"blockID", event.BlockId,
)
time.AfterFunc(
// Add another 12 seconds, to ensure one more L1 block will be mined before the proof submission
timeToExpire+12*time.Second,
func() { p.proofWindowExpiredCh <- event },
)
}

return nil
Expand Down

0 comments on commit 183078c

Please sign in to comment.