Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SendBlockDecorator ¶
type SendBlockDecorator struct { Options SendBlockOptions // contains filtered or unexported fields }
func NewSendBlockDecorator ¶
func NewSendBlockDecorator(options SendBlockOptions, cdc codec.Codec) *SendBlockDecorator
NewSendBlockDecorator are a part of auth module AnteDecorators that are recursively chained together into a single AntiHandler.
func (*SendBlockDecorator) AnteHandle ¶
func (decorator *SendBlockDecorator) AnteHandle( ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler, ) (newCtx sdk.Context, err error)
AnteHandle is used for performing basic validity checks on a transaction such that it can be thrown out of the mempool.
func (*SendBlockDecorator) CheckIfBlocked ¶
func (decorator *SendBlockDecorator) CheckIfBlocked(msgs []sdk.Msg) error
CheckIfBlocked returns error if following are true: 1. decorator.permittedOnlySendTo has msg.GetSigners() has its key, and 2-1. msg is not a SendMsg, or 2-2. msg is SendMsg and the destination is not decorator.permittedOnlySendTo[msg.Sender]
type SendBlockOptions ¶
func NewSendBlockOptions ¶
func NewSendBlockOptions(appOpts servertypes.AppOptions) SendBlockOptions
NewSendBlockOptions returns options for sending new blocks.
Click to show internal directories.
Click to hide internal directories.