Skip to content

Commit

Permalink
clean up changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jimjbrettj committed Oct 3, 2023
1 parent 24e07e3 commit 20bef8a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions dot/core/mocks_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/babe/mock_state_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/babe/verify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ func Test_verifier_verifyAuthorshipRight(t *testing.T) {
// Case 0: First element not preruntime digest
header0 := newTestHeader(t, testInvalidSeal, testInvalidSeal)

// Case 1: last element not seal
// Case 1: Last element not seal
header1 := newTestHeader(t, testInvalidPreRuntimeDigest, testInvalidPreRuntimeDigest)

// Case 2: Fail to verify preruntime digest
Expand Down
2 changes: 1 addition & 1 deletion pkg/finality-grandpa/bridge_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ type priorView[Hash, Number any] struct {
bridged *bridged[Hash, Number]
}

// push an update to the latter view.
// Push an update to the latter view.
func (pv *priorView[H, N]) update(new RoundState[H, N]) { //skipcq: RVV-B0001
pv.bridged.update(new)
}
Expand Down
8 changes: 4 additions & 4 deletions pkg/finality-grandpa/round.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func (r *Round[ID, H, N, S]) importPrevote(
return nil, err
}

// push the vote into HistoricalVotes.
// Push the vote into HistoricalVotes.
message := Message[H, N]{}
setMessage(&message, prevote)
signedMessage := SignedMessage[H, N, S, ID]{
Expand All @@ -315,7 +315,7 @@ func (r *Round[ID, H, N, S]) importPrevote(
// mark the equivocator as such. no need to "undo" the first vote.
r.context.Equivocated(*info, PrevotePhase)

// push the vote into HistoricalVotes.
// Push the vote into HistoricalVotes.
message := Message[H, N]{}
setMessage(&message, prevote)
signedMessage := SignedMessage[H, N, S, ID]{
Expand Down Expand Up @@ -383,7 +383,7 @@ func (r *Round[ID, H, N, S]) importPrecommit(
return nil, err
}

// push the vote into HistoricalVotes.
// Push the vote into HistoricalVotes.
message := Message[H, N]{}
setMessage(&message, precommit)
signedMessage := SignedMessage[H, N, S, ID]{
Expand All @@ -400,7 +400,7 @@ func (r *Round[ID, H, N, S]) importPrecommit(
// mark the equivocator as such. no need to "undo" the first vote.
r.context.Equivocated(*info, PrecommitPhase)

// push the vote into HistoricalVotes.
// Push the vote into HistoricalVotes.
message := Message[H, N]{}
setMessage(&message, precommit)
signedMessage := SignedMessage[H, N, S, ID]{
Expand Down

0 comments on commit 20bef8a

Please sign in to comment.