diff --git a/dot/core/mocks_test.go b/dot/core/mocks_test.go index 297180cc4c1..07f6a66b86a 100644 --- a/dot/core/mocks_test.go +++ b/dot/core/mocks_test.go @@ -360,7 +360,7 @@ func (mr *MockTransactionStateMockRecorder) PendingInPool() *gomock.Call { // Push mocks base method. func (m *MockTransactionState) Push(arg0 *transaction.ValidTransaction) (common.Hash, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "push", arg0) + ret := m.ctrl.Call(m, "Push", arg0) ret0, _ := ret[0].(common.Hash) ret1, _ := ret[1].(error) return ret0, ret1 @@ -369,7 +369,7 @@ func (m *MockTransactionState) Push(arg0 *transaction.ValidTransaction) (common. // Push indicates an expected call of Push. func (mr *MockTransactionStateMockRecorder) Push(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "push", reflect.TypeOf((*MockTransactionState)(nil).Push), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Push", reflect.TypeOf((*MockTransactionState)(nil).Push), arg0) } // RemoveExtrinsic mocks base method. diff --git a/lib/babe/mock_state_test.go b/lib/babe/mock_state_test.go index 825e8055dbb..f97f87dd392 100644 --- a/lib/babe/mock_state_test.go +++ b/lib/babe/mock_state_test.go @@ -404,7 +404,7 @@ func (mr *MockTransactionStateMockRecorder) PopWithTimer(arg0 interface{}) *gomo // Push mocks base method. func (m *MockTransactionState) Push(arg0 *transaction.ValidTransaction) (common.Hash, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "push", arg0) + ret := m.ctrl.Call(m, "Push", arg0) ret0, _ := ret[0].(common.Hash) ret1, _ := ret[1].(error) return ret0, ret1 @@ -413,7 +413,7 @@ func (m *MockTransactionState) Push(arg0 *transaction.ValidTransaction) (common. // Push indicates an expected call of Push. func (mr *MockTransactionStateMockRecorder) Push(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "push", reflect.TypeOf((*MockTransactionState)(nil).Push), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Push", reflect.TypeOf((*MockTransactionState)(nil).Push), arg0) } // MockEpochState is a mock of EpochState interface. diff --git a/lib/babe/verify_test.go b/lib/babe/verify_test.go index babe0778c70..7e246d01aef 100644 --- a/lib/babe/verify_test.go +++ b/lib/babe/verify_test.go @@ -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 diff --git a/pkg/finality-grandpa/bridge_state.go b/pkg/finality-grandpa/bridge_state.go index 6885c32527b..7e680849013 100644 --- a/pkg/finality-grandpa/bridge_state.go +++ b/pkg/finality-grandpa/bridge_state.go @@ -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) } diff --git a/pkg/finality-grandpa/round.go b/pkg/finality-grandpa/round.go index 32d66773f73..f4c8ead520f 100644 --- a/pkg/finality-grandpa/round.go +++ b/pkg/finality-grandpa/round.go @@ -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]{ @@ -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]{ @@ -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]{ @@ -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]{