Skip to content

Commit

Permalink
Appease linter part II
Browse files Browse the repository at this point in the history
  • Loading branch information
sergio-mena committed Jan 12, 2025
1 parent 27ccb72 commit 8893054
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion internal/consensus/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ func validateLastPrecommit(t *testing.T, cs *State, privVal *validatorStub, bloc
address := pv.Address()
var vote *types.Vote
if vs, ok := votes.(*types.VoteSet); ok {

if vote = vs.GetByAddress(address); vote == nil {
panic("Failed to find precommit from validator")
}
Expand Down
1 change: 0 additions & 1 deletion internal/consensus/reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,6 @@ OUTER_LOOP:
} else {
if c := getEntireCommitToSend(logger, conR.conS, rs, ps, prs); c != nil {
if commit, ok := (c).(*types.Commit); ok {

if ps.sendCommit(commit) {
continue OUTER_LOOP
}
Expand Down
1 change: 0 additions & 1 deletion internal/consensus/replay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (
mempl "github.com/cometbft/cometbft/mempool"
"github.com/cometbft/cometbft/privval"
"github.com/cometbft/cometbft/proxy"

sm "github.com/cometbft/cometbft/state"
smmocks "github.com/cometbft/cometbft/state/mocks"
"github.com/cometbft/cometbft/types"
Expand Down
2 changes: 1 addition & 1 deletion internal/consensus/types/round_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ type RoundState struct {
ValidBlockParts *types.PartSet `json:"valid_block_parts"`
Votes *HeightVoteSet `json:"votes"`
CommitRound int32 `json:"commit_round"` //
LastCommit types.VoteSetReader `json:"last_commit"` // Last precommits at Height-1 TODO We need to check that this is not breaking json marshalling
LastCommit types.VoteSetReader `json:"last_commit"` // Last precommits at Height-1
LastValidators *types.ValidatorSet `json:"last_validators"`
TriggeredTimeoutPrecommit bool `json:"triggered_timeout_precommit"`
}
Expand Down

0 comments on commit 8893054

Please sign in to comment.