diff --git a/prover/prover.go b/prover/prover.go index 452dd6b5f..031b8fcbf 100644 --- a/prover/prover.go +++ b/prover/prover.go @@ -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() + } } }