This commit is contained in:
David Terpay 2023-08-15 18:04:35 -04:00
parent af2b5226f3
commit faa64a5415
No known key found for this signature in database
GPG Key ID: 627EFB00DADF0CD1
6 changed files with 9 additions and 11 deletions

View File

@ -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
}
}

View File

@ -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.

View File

@ -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.

View File

@ -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
}

View File

@ -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

View File

@ -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
}