Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobKeeper ¶
type MinGasPFBDecorator ¶
type MinGasPFBDecorator struct {
// contains filtered or unexported fields
}
MinGasPFBDecorator helps to prevent a PFB from being included in a block but running out of gas in DeliverTx (effectively getting DA for free) This decorator should be run after any decorator that consumes gas.
func NewMinGasPFBDecorator ¶
func NewMinGasPFBDecorator(k BlobKeeper) MinGasPFBDecorator
func (MinGasPFBDecorator) AnteHandle ¶
func (d MinGasPFBDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)
AnteHandle implemnts the AnteHandler interface. It checks to see if the transaction contains a MsgPayForBlobs and if so, checks that the transaction has allocated enough gas.
Click to show internal directories.
Click to hide internal directories.