Skip to content

Commit d81b830

Browse files
authoredJan 27, 2025··
docs: fix typos (#1586)
## Description Fix typos for logs and comments Signed-off-by: chloefeal <[email protected]>
1 parent ca0c9d7 commit d81b830

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed
 

‎behaviour/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Package Behaviour provides a mechanism for reactors to report behaviour of peers.
33
44
Instead of a reactor calling the switch directly it will call the behaviour module which will
5-
handle the stoping and marking peer as good on behalf of the reactor.
5+
handle the stopping and marking peer as good on behalf of the reactor.
66
77
There are four different behaviours a reactor can report.
88

‎behaviour/peer_behaviour.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type messageOutOfOrder struct {
2525
explanation string
2626
}
2727

28-
// MessageOutOfOrder returns a messagOutOfOrder PeerBehaviour.
28+
// MessageOutOfOrder returns a messageOutOfOrder PeerBehaviour.
2929
func MessageOutOfOrder(peerID p2p.ID, explanation string) PeerBehaviour {
3030
return PeerBehaviour{peerID: peerID, reason: messageOutOfOrder{explanation}}
3131
}

‎consensus/common_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (vs *validatorStub) signVote(
112112
return nil, fmt.Errorf("sign vote failed: %w", err)
113113
}
114114

115-
// ref: signVote in FilePV, the vote should use the privious vote info when the sign data is the same.
115+
// ref: signVote in FilePV, the vote should use the previous vote info when the sign data is the same.
116116
if signDataIsEqual(vs.lastVote, v) {
117117
v.Signature = vs.lastVote.Signature
118118
v.Timestamp = vs.lastVote.Timestamp

‎consensus/metrics.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ type Metrics struct {
7777
// was relevant to the block the node is trying to gather or not.
7878
BlockGossipPartsReceived metrics.Counter
7979

80-
// QuroumPrevoteMessageDelay is the interval in seconds between the proposal
80+
// QuorumPrevoteMessageDelay is the interval in seconds between the proposal
8181
// timestamp and the timestamp of the earliest prevote that achieved a quorum
8282
// during the prevote step.
8383
//

‎consensus/replay_file.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func (pb *playback) replayReset(count int, newStepSub types.Subscription) error
144144
pb.fp = fp
145145
pb.dec = NewWALDecoder(fp)
146146
count = pb.count - count
147-
fmt.Printf("Reseting from %d to %d\n", pb.count, count)
147+
fmt.Printf("Resetting from %d to %d\n", pb.count, count)
148148
pb.count = 0
149149
pb.cs = newCS
150150
var msg *TimedWALMessage

‎statesync/syncer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ func (s *syncer) verifyApp(snapshot *snapshot, appVersion uint64) (abci.Timeouts
497497
// sanity check that the app version in the block matches the application's own record
498498
// of its version
499499
if resp.AppVersion != appVersion {
500-
// An error here most likely means that the app hasn't inplemented state sync
500+
// An error here most likely means that the app hasn't implemented state sync
501501
// or the Info call correctly
502502
return abci.TimeoutsInfo{}, fmt.Errorf("app version mismatch. Expected: %d, got: %d",
503503
appVersion, resp.AppVersion)

0 commit comments

Comments
 (0)
Please sign in to comment.