From 392eb78f3721fedea66bd2f361010e2495e385c6 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 4 Jul 2023 20:32:36 +0800 Subject: [PATCH] fix(prover): fix an unlock issue (#306) --- prover/prover.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prover/prover.go b/prover/prover.go index ed97d2f45..7ed6677b0 100644 --- a/prover/prover.go +++ b/prover/prover.go @@ -468,7 +468,7 @@ func (p *Prover) onBlockProposed( // if we cant prove it p.currentBlocksWaitingForProofWindowMutex.Lock() p.currentBlocksWaitingForProofWindow = append(p.currentBlocksWaitingForProofWindow, event.Meta.Id) - p.currentBlocksBeingProvenMutex.Unlock() + p.currentBlocksWaitingForProofWindowMutex.Unlock() return nil }