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

feat(prover): release capacity when the corresponding local proof generation is canceled #402

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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