Skip to content

Commit 63b8241

Browse files
authored
Run misspell linter with -w flag (#2320)
This runs the popular misspell linter with the -w flag to automatically correct spelling mistakes in go-algorand.
1 parent 708581b commit 63b8241

File tree

91 files changed

+2025
-2025
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+2025
-2025
lines changed

agreement/abstractions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type BlockValidator interface {
5151
Validate(context.Context, bookkeeping.Block) (ValidatedBlock, error)
5252
}
5353

54-
// A ValidatedBlock represents an Block that has been successfuly validated
54+
// A ValidatedBlock represents an Block that has been successfully validated
5555
// and can now be recorded in the ledger. This is an optimized version of
5656
// calling EnsureBlock() on the Ledger.
5757
type ValidatedBlock interface {

agreement/fuzzer/fuzzer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func (n *Fuzzer) initAccountsAndBalances(rootSeed []byte, onlineNodes []bool) er
229229
return nil
230230
}
231231

232-
// Disconnect would disconnect node diconnectingNode from node disconnectedNode ensuring that no futher messages
232+
// Disconnect would disconnect node diconnectingNode from node disconnectedNode ensuring that no further messages
233233
// from disconnectedNode would reach diconnectingNode
234234
func (n *Fuzzer) Disconnect(diconnectingNode, disconnectedNode int) {
235235
n.disconnectMu.Lock()

agreement/fuzzer/networkFacade_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ func (n *NetworkFacade) Zero() timers.Clock {
352352
n.zeroClock = n.fuzzer.WallClock()
353353

354354
// we don't want to expire all the pending clocks here.
355-
// this callback is coming *only* from the agreement sevice.
355+
// this callback is coming *only* from the agreement service.
356356
// it also means that we're not in the demux loop, so no one is blocking
357357
// on any of the clocks.
358358

agreement/fuzzer/tests_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func printResults(t *testing.T, r *RunResult) {
7878
r.PostRecoveryLowRound, r.PostRecoveryHighRound,
7979
)
8080
if r.PreRecoveryHighRound != r.PreRecoveryLowRound {
81-
// network got disupted by the filters.
81+
// network got disputed by the filters.
8282
fmt.Printf("%v partitioned the network ( %d - %d ), but recovered correctly reaching round %d\n", t.Name(), r.PreRecoveryLowRound, r.PreRecoveryHighRound, r.PostRecoveryHighRound)
8383
} else {
8484
if r.PreRecoveryHighRound == r.StartLowRound {

agreement/fuzzer/validator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (v *Validator) CheckNetworkRecovery() {
8282
v.runResult.PostRecoveryLowRound, v.runResult.PostRecoveryHighRound,
8383
)
8484
if v.runResult.PreRecoveryHighRound != v.runResult.PreRecoveryLowRound {
85-
// network got disupted by the filters.
85+
// network got disputed by the filters.
8686
fmt.Printf("%v partitioned the network ( %d - %d ), but recovered correctly reaching round %d\n", v.tb.Name(), v.runResult.PreRecoveryLowRound, v.runResult.PreRecoveryHighRound, v.runResult.PostRecoveryHighRound)
8787
} else {
8888
if v.runResult.PreRecoveryHighRound == v.runResult.StartLowRound {

agreement/player_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2972,7 +2972,7 @@ func TestPlayer_CertThresholdCommitsFuturePeriodIfAlreadyHasBlock(t *testing.T)
29722972
require.Equalf(t, r+1, pWhite.Round, "player did not enter new round... bad!")
29732973
require.Equalf(t, period(0), pWhite.Period, "player should have entered period 0 of new round but didn't")
29742974
commitEvent := ev(ensureAction{Certificate: Certificate(bun), Payload: *payload})
2975-
require.Truef(t, pM.getTrace().Contains(commitEvent), "Player should have commited a block but didn't")
2975+
require.Truef(t, pM.getTrace().Contains(commitEvent), "Player should have committed a block but didn't")
29762976
}
29772977

29782978
func TestPlayer_PayloadAfterCertThresholdCommits(t *testing.T) {

agreement/proposalManager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
)
2424

2525
// A proposalManager is a proposalMachine which applies relay rules to incoming
26-
// proposal-votes and proposal payloads, absorbes threshold events, and emits
26+
// proposal-votes and proposal payloads, absorbs threshold events, and emits
2727
// proposalCommittable events as proposals become committable.
2828
//
2929
// It handles the following type(s) of event: vote{Present,Verified},

agreement/state_machine_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ type ioSafetyProp interface {
164164
// returns bool whether trace is in the safety property. If false,
165165
// optionally accompanied by an informational message pertaining to why
166166
// the trace is not in the safety property. Err is set if we saw an
167-
// unforseen error.
167+
// unforeseen error.
168168
containsTrace(trace ioTrace) (contains bool, info string, err error)
169169

170170
// every safety prop also exposes the option to check it dynamically
@@ -283,7 +283,7 @@ type ioAutomataConcrete struct {
283283
listener
284284

285285
// listeners need additional context. For now, we keep it static.
286-
routerCtx router // optional, set to router{} on defualt
286+
routerCtx router // optional, set to router{} on default
287287
playerCtx player // optional, set to player{} by default
288288

289289
// private

agreement/voteAuxiliary_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func TestVoteTrackerPeriodStepCachedThresholdPrivate(t *testing.T) {
9999
require.NoError(t, err)
100100
require.NoErrorf(t, res, "Expected threshold event not relayed")
101101

102-
// now, given that a bottom threshold was emmited, make sure private state was set (so we can appropriately respond to queries)
102+
// now, given that a bottom threshold was emitted, make sure private state was set (so we can appropriately respond to queries)
103103
vt := perRouter.voteRoot.underlying().(*voteTrackerPeriod)
104104
require.Truef(t, vt.Cached.Bottom, "VoteTrackerPeriod didn't set bottom to true")
105105

agreement/voteTracker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func (tracker *voteTracker) handle(r routerHandle, p player, e0 event) event {
216216

217217
// We've just moved the vote around ( regular vote -> equivocator vote ) but that did not
218218
// change the total weight. Since the total weight for the proposal in the vote wasn't altered,
219-
// we know for sure that we haven't reached a threshold for that proposal. ( but maybe for a diffrent one )
219+
// we know for sure that we haven't reached a threshold for that proposal. ( but maybe for a different one )
220220

221221
// at this point, we need to check if this is the very last vote or not.
222222
// if we have no regular votes, we won't be generating a bundle so we can abort right here.

0 commit comments

Comments
 (0)