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

Commit

Permalink
feat(prover): update requestProofByBlockID
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Oct 8, 2023
1 parent 422728d commit eb88749
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion prover/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,12 @@ func (p *Prover) requestProofByBlockID(blockId *big.Int, l1Height *big.Int, cont

p.proposeConcurrencyGuard <- struct{}{}

if proofSubmitter := p.selectSubmitter(event.MinTier); proofSubmitter != nil {
var minTier = event.MinTier
if contestOldProof {
minTier += 1
}

if proofSubmitter := p.selectSubmitter(minTier); proofSubmitter != nil {
return proofSubmitter.RequestProof(ctx, event)
}

Expand Down

0 comments on commit eb88749

Please sign in to comment.