Skip to content

Commit

Permalink
chore: apply linter comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Jan 31, 2024
1 parent e3810d8 commit 62af8fc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion internal/state/validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ func TestValidateBlockEvidence(t *testing.T) {
blockStore,
eventBus,
)
lastCommit := types.NewCommit(0, 0, types.BlockID{}, nil,nil)
lastCommit := types.NewCommit(0, 0, types.BlockID{}, nil, nil)

for height := int64(1); height < validationTestsStopHeight; height++ {
proposerProTxHash := state.Validators.GetProposer().ProTxHash
Expand Down
7 changes: 4 additions & 3 deletions types/vote_extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ import (
"math/big"

"github.com/dashpay/dashd-go/btcjson"
"github.com/hashicorp/go-multierror"
"github.com/rs/zerolog"

abci "github.com/dashpay/tenderdash/abci/types"
"github.com/dashpay/tenderdash/crypto"
"github.com/dashpay/tenderdash/crypto/bls12381"
"github.com/dashpay/tenderdash/internal/libs/protoio"
tmbytes "github.com/dashpay/tenderdash/libs/bytes"
tmproto "github.com/dashpay/tenderdash/proto/tendermint/types"
"github.com/hashicorp/go-multierror"
"github.com/rs/zerolog"
)

var (
Expand Down Expand Up @@ -367,7 +368,7 @@ func (e GenericVoteExtension) MarshalZerologObject(o *zerolog.Event) {
o.Hex("sign_request_id", e.GetSignRequestId())
}

//nolint:revive,stylecheck // name is the same as in protobuf-generated code
//nolint:stylecheck // name is the same as in protobuf-generated code
func (e GenericVoteExtension) GetSignRequestId() []byte {
if e.XSignRequestId == nil {
return nil
Expand Down
8 changes: 4 additions & 4 deletions types/vote_extension_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
"testing"

"github.com/dashpay/dashd-go/btcjson"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/dashpay/tenderdash/crypto/bls12381"
tmbytes "github.com/dashpay/tenderdash/libs/bytes"
"github.com/dashpay/tenderdash/libs/log"
"github.com/dashpay/tenderdash/proto/tendermint/types"
tmproto "github.com/dashpay/tenderdash/proto/tendermint/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func TestVoteExtensionCopySignsFromProto(t *testing.T) {
Expand Down Expand Up @@ -45,7 +45,7 @@ func TestMakeVoteExtensionsSignItems(t *testing.T) {
}{
{
vote: Vote{
Type: types.PrecommitType,
Type: tmproto.PrecommitType,
Height: 1001,
ValidatorProTxHash: tmbytes.MustHexDecode("9CC13F685BC3EA0FCA99B87F42ABCC934C6305AA47F62A32266A2B9D55306B7B"),
VoteExtensions: VoteExtensionsFromProto(&tmproto.VoteExtension{
Expand Down

0 comments on commit 62af8fc

Please sign in to comment.