refactor(baseapp): create checktx handler (#21979)
This commit is contained in:
@@ -23,6 +23,11 @@ type ProcessProposalHandler func(Context, *abci.ProcessProposalRequest) (*abci.P
|
||||
// PrepareProposalHandler defines a function type alias for preparing a proposal
|
||||
type PrepareProposalHandler func(Context, *abci.PrepareProposalRequest) (*abci.PrepareProposalResponse, error)
|
||||
|
||||
// CheckTxHandler defines a function type alias for executing logic before transactions are executed.
|
||||
// `RunTx` is a function type alias for executing logic before transactions are executed.
|
||||
// The passed in runtx does not override antehandlers, the execution mode is not passed into runtx to avoid overriding the execution mode.
|
||||
type CheckTxHandler func(func(txBytes []byte, tx Tx) (gInfo GasInfo, result *Result, anteEvents []abci.Event, err error), *abci.CheckTxRequest) (*abci.CheckTxResponse, error)
|
||||
|
||||
// ExtendVoteHandler defines a function type alias for extending a pre-commit vote.
|
||||
type ExtendVoteHandler func(Context, *abci.ExtendVoteRequest) (*abci.ExtendVoteResponse, error)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user