Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph committed Oct 4, 2023
1 parent 755e374 commit bdf293c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions snow/engine/snowman/transitive.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@ func (t *Transitive) Chits(ctx context.Context, nodeID ids.NodeID, requestID uin

var (
addedPreferredIDAtHeight = addedPreferred
// Invariant: The order of [responseOptions] is important. The order
// must be [preferredID] then (optionally) [preferredIDAtHeight]. During
// vote application, the first vote that can be applied will be used.
// So, the votes should be populated in order of decreasing height.
// Invariant: The order of [responseOptions] must be [preferredID] then
// (optionally) [preferredIDAtHeight]. During vote application, the
// first vote that can be applied will be used. So, the votes should be
// populated in order of decreasing height.
responseOptions = []ids.ID{preferredID}
)
if preferredID != preferredIDAtHeight {
Expand Down

0 comments on commit bdf293c

Please sign in to comment.