From 818aaab9382d24cdcfe59347fe29f32b4559a4df Mon Sep 17 00:00:00 2001 From: Piotr Macek <4007944+piotrm50@users.noreply.github.com> Date: Tue, 2 Apr 2024 09:07:00 +0200 Subject: [PATCH] Improve a comment --- pkg/protocol/commitments.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/protocol/commitments.go b/pkg/protocol/commitments.go index 793564248..8aaaf9dbe 100644 --- a/pkg/protocol/commitments.go +++ b/pkg/protocol/commitments.go @@ -141,7 +141,9 @@ func (c *Commitments) initRequester() (shutdown func()) { // publishRootCommitment publishes the root commitment of the main engine. func (c *Commitments) publishRootCommitment(mainChain *Chain, mainEngine *engine.Engine) func() { return mainEngine.RootCommitment.OnUpdate(func(_ *model.Commitment, rootCommitment *model.Commitment) { - // Use workerpool to avoid a deadlock when + // Use workerpool to avoid a deadlock when warpSync mode is being enabled at the same time. + // Two goroutines deadlock on Commitment.IsSynced + // https://github.com/iotaledger/iota-core/issues/898 c.workerPool.Submit(func() { publishedCommitment, published, err := c.publishCommitment(rootCommitment) if err != nil {