Skip to content

Commit 9d34e9e

Browse files
fixed dropping of pending blocks
1 parent 1adaf36 commit 9d34e9e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

snow/engine/snowman/transitive.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,11 +478,14 @@ func (t *Transitive) issueFrom(vdr ids.ShortID, blk snowman.Block) (bool, error)
478478
// Remove any outstanding requests for this block
479479
t.blkReqs.RemoveAny(blkID)
480480

481-
t.blocked.Abandon(blkID)
481+
issued := t.Consensus.Issued(blk)
482+
if issued {
483+
t.blocked.Abandon(blkID)
484+
}
482485

483486
// Tracks performance statistics
484487
t.numRequests.Set(float64(t.blkReqs.Len()))
485-
return t.Consensus.Issued(blk), t.errs.Err
488+
return issued, t.errs.Err
486489
}
487490

488491
// issueWithAncestors attempts to issue the branch ending with [blk] to consensus.

0 commit comments

Comments
 (0)