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

Commit

Permalink
feat(prover): release capacity when the corresponding local proof gen…
Browse files Browse the repository at this point in the history
…eration is canceled (#402)
  • Loading branch information
davidtaikocha authored Sep 22, 2023
1 parent ce8bd1d commit 1eab54d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions prover/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,9 @@ func (p *Prover) cancelProof(ctx context.Context, blockID uint64) {
if cancel, ok := p.currentBlocksBeingProven[blockID]; ok {
cancel()
delete(p.currentBlocksBeingProven, blockID)
if !p.cfg.OracleProver {
p.capacityManager.ReleaseOneCapacity()
}
}
}

Expand Down

0 comments on commit 1eab54d

Please sign in to comment.