Skip to content

Commit

Permalink
Fix minor typos (#3733)
Browse files Browse the repository at this point in the history
  • Loading branch information
leopardracer authored Mar 1, 2025
1 parent b8ac42a commit 3f6e226
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion snow/consensus/snowball/binary_snowflake.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type binarySnowflake struct {
// The corresponding beta values give the threshold required to finalize this instance.
terminationConditions []terminationCondition

// confidence is the number of consecutive succcessful polls for a given
// confidence is the number of consecutive successful polls for a given
// alphaConfidence threshold.
// This instance finalizes when confidence[i] >= terminationConditions[i].beta for any i
confidence []int
Expand Down
2 changes: 1 addition & 1 deletion snow/consensus/snowman/topological.go
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ func (ts *Topological) vote(ctx context.Context, voteStack []votes) (ids.ID, err
// Therefore, we need to make sure the child is still in the tree.
childBlock, notRejected := ts.blocks[childID]
if notRejected {
ts.ctx.Log.Verbo("defering confidence reset of child block",
ts.ctx.Log.Verbo("deferring confidence reset of child block",
zap.Stringer("childID", childID),
)

Expand Down
2 changes: 1 addition & 1 deletion snow/engine/snowman/bootstrap/bootstrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func (b *Bootstrapper) sendBootstrappingMessagesOrFinish(ctx context.Context) er
zap.String("reason", "no blocks accepted"),
zap.Int("numBeacons", b.Beacons.NumValidators(b.Ctx.SubnetID)),
)
// Invariant: These functions are mutualy recursive. However, when
// Invariant: These functions are mutually recursive. However, when
// [startBootstrapping] calls [sendMessagesOrFinish], it is guaranteed
// to exit when sending GetAcceptedFrontier requests.
return b.startBootstrapping(ctx)
Expand Down

0 comments on commit 3f6e226

Please sign in to comment.