Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessConsensusMessages ¶
func ProcessConsensusMessages( ctx sdk.Context, appCodec codec.Codec, admissionHandler AdmissionHandler, msgServiceRouter *baseapp.MsgServiceRouter, consensusMsgs []*prototypes.Any, ) []*abci.ConsensusMessageResponse
ProcessConsensusMessages processes a batch of consensus messages. It unpacks each message, checks if it is allowed, executes it, and returns the responses.
Types ¶
type AdmissionHandler ¶
AdmissionHandler is a function used to validate if a Consensus Message is valid
func AllowedMessagesHandler ¶
func AllowedMessagesHandler(messageNames []string) AdmissionHandler
AllowedMessagesHandler returns an AdmissionHandler that only allows messages with the given names
Click to show internal directories.
Click to hide internal directories.