* init * replace existing tx_priorities with nop_tx_priority * fix go.mod --------- Co-authored-by: David Terpay <david.terpay@gmail.com>
21 lines
317 B
Go
21 lines
317 B
Go
package base
|
|
|
|
import (
|
|
"context"
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
)
|
|
|
|
// DefaultTxPriority
|
|
func DefaultTxPriority() TxPriority[int] {
|
|
return TxPriority[int]{
|
|
GetTxPriority: func(goCtx context.Context, tx sdk.Tx) int {
|
|
return 0
|
|
},
|
|
Compare: func(a, b int) int {
|
|
return 0
|
|
},
|
|
MinValue: 0,
|
|
}
|
|
}
|