Skip to content

Commit 2633ab0

Browse files
Remove unnecessary repoll after vertex rejection (ava-labs#2795)
1 parent dd08351 commit 2633ab0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

snow/consensus/avalanche/topological.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -578,12 +578,7 @@ func (ta *Topological) update(ctx context.Context, vtx Vertex) error {
578578
zap.Stringer("vtxID", vtxID),
579579
zap.Stringer("parentID", dep.ID()),
580580
)
581-
if !txv.Status().Decided() {
582-
if err := ta.cg.Remove(ctx, vtxID); err != nil {
583-
return fmt.Errorf("failed to remove transaction vertex %s from snowstorm before rejecting vertex itself", vtxID)
584-
}
585-
ta.virtuousVoting.Remove(vtxID)
586-
}
581+
ta.virtuousVoting.Remove(vtxID)
587582
if err := vtx.Reject(ctx); err != nil {
588583
return err
589584
}

0 commit comments

Comments
 (0)