From faa64a541578bbe1a99f1a9a4fed3f860c80767a Mon Sep 17 00:00:00 2001 From: David Terpay Date: Tue, 15 Aug 2023 18:04:35 -0400 Subject: [PATCH] lints --- api/pob/abci/v1/auction.pulsar.go | 2 +- block/base/lane.go | 2 +- block/proposals.go | 2 +- lanes/free/lane.go | 2 +- lanes/mev/lane.go | 8 +++----- lanes/standard/lane.go | 4 ++-- 6 files changed, 9 insertions(+), 11 deletions(-) diff --git a/api/pob/abci/v1/auction.pulsar.go b/api/pob/abci/v1/auction.pulsar.go index fb2e665..eadfe00 100644 --- a/api/pob/abci/v1/auction.pulsar.go +++ b/api/pob/abci/v1/auction.pulsar.go @@ -1411,4 +1411,4 @@ func file_pob_abci_v1_auction_proto_init() { file_pob_abci_v1_auction_proto_rawDesc = nil file_pob_abci_v1_auction_proto_goTypes = nil file_pob_abci_v1_auction_proto_depIdxs = nil -} \ No newline at end of file +} diff --git a/block/base/lane.go b/block/base/lane.go index 8fa5924..dc58cf4 100644 --- a/block/base/lane.go +++ b/block/base/lane.go @@ -16,7 +16,7 @@ var _ block.Lane = (*BaseLane)(nil) // implementation of the MatchHandler, PrepareLaneHandler, ProcessLaneHandler, // and CheckOrderHandler. To extend this lane, you must either utilize the default // handlers or construct your own that you pass into the base/setters. -type BaseLane struct { +type BaseLane struct { //nolint // cfg stores functionality required to encode/decode transactions, maintains how // many transactions are allowed in this lane's mempool, and the amount of block // space this lane is allowed to consume. diff --git a/block/proposals.go b/block/proposals.go index 85aea87..f2d77ea 100644 --- a/block/proposals.go +++ b/block/proposals.go @@ -30,7 +30,7 @@ type ( // and updating proposals. BlockProposals are iteratively updated as each lane prepares its // partial proposal. Each lane must call UpdateProposal with its partial proposal in PrepareLane. BlockProposals // can also include vote extensions, which are included at the top of the proposal. - BlockProposal interface { + BlockProposal interface { //nolint // UpdateProposal updates the proposal with the given transactions. There are a // few invarients that are checked: // 1. The total size of the proposal must be less than the maximum number of bytes allowed. diff --git a/lanes/free/lane.go b/lanes/free/lane.go index 358b089..10dcfaa 100644 --- a/lanes/free/lane.go +++ b/lanes/free/lane.go @@ -16,7 +16,7 @@ var _ block.Lane = (*FreeLane)(nil) // FreeLane defines the lane that is responsible for processing free transactions. // By default, transactions that are staking related are considered free. -type FreeLane struct { +type FreeLane struct { //nolint *base.BaseLane } diff --git a/lanes/mev/lane.go b/lanes/mev/lane.go index 35c00d0..2457352 100644 --- a/lanes/mev/lane.go +++ b/lanes/mev/lane.go @@ -13,9 +13,7 @@ const ( LaneName = "mev" ) -var ( - _ MEVLaneI = (*MEVLane)(nil) -) +var _ MEVLaneI = (*MEVLane)(nil) // MEVLane defines a MEV (Maximal Extracted Value) auction lane. The MEV auction lane // hosts transactions that want to bid for inclusion at the top of the next block. @@ -26,13 +24,13 @@ var ( type ( // MEVLaneI defines the interface for the mev auction lane. This interface // is utilized by both the x/builder module and the checkTx handler. - MEVLaneI interface { + MEVLaneI interface { //nolint block.Lane Factory GetTopAuctionTx(ctx context.Context) sdk.Tx } - MEVLane struct { + MEVLane struct { //nolint // LaneConfig defines the base lane configuration. *base.BaseLane diff --git a/lanes/standard/lane.go b/lanes/standard/lane.go index 8230949..d8543fc 100644 --- a/lanes/standard/lane.go +++ b/lanes/standard/lane.go @@ -15,10 +15,10 @@ var _ block.Lane = (*StandardLane)(nil) // StandardLane defines a default lane implementation. The standard lane orders // transactions by the transaction fees. The default lane accepts any transaction // that is should not be ignored (as defined by the IgnoreList in the LaneConfig). -// The default lane builds and verifies blocks in a similiar fashion to how the +// The default lane builds and verifies blocks in a similar fashion to how the // CometBFT/Tendermint consensus engine builds and verifies blocks pre SDK version // 0.47.0. -type StandardLane struct { +type StandardLane struct { //nolint *base.BaseLane }