Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAnteHandler ¶
func NewAnteHandler(opts HandlerOptions) (sdk.AnteHandler, error)
Types ¶
type HandlerOptions ¶
type HandlerOptions struct { ante.HandlerOptions IBCkeeper *ibckeeper.Keeper BypassMinFeeMsgTypes []string }
HandlerOptions extend the SDK's AnteHandler options by requiring the IBC channel keeper.
type MempoolFeeDecorator ¶
type MempoolFeeDecorator struct {
BypassMinFeeMsgTypes []string
}
MempoolFeeDecorator will check if the transaction's fee is at least as large as the local validator's minimum gasFee (defined in validator config).
If fee is too low, decorator returns error and tx is rejected from mempool. Note this only applies when ctx.CheckTx = true. If fee is high enough or not CheckTx, then call next AnteHandler.
CONTRACT: Tx must implement FeeTx to use MempoolFeeDecorator
func NewMempoolFeeDecorator ¶
func NewMempoolFeeDecorator(bypassMsgTypes []string) MempoolFeeDecorator
func (MempoolFeeDecorator) AnteHandle ¶
Click to show internal directories.
Click to hide internal directories.