Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Ctx *core.Context
Validators validators.Set
MsgFromVMChan <-chan message.InboundMessage
ConsensusParams Parameters
Gossiper Gossiper
ExternalGossiper ExternalGossiper
Router router.Router
}
Config configures the consensus message handler
type ExternalGossiper ¶
type ExternalGossiper interface {
Gossiper
// GossipExternal sends an external gossip message
GossipExternal(context.Context) error
}
ExternalGossiper handles external gossip operations
type Handler ¶
type Handler interface {
// Context returns the handler's context
Context() *core.Context
// SetEngine sets the consensus engine
SetEngine(engine core.Engine)
// Push pushes a message to be handled
Push(context.Context, Message) error
// Len returns the number of pending messages
Len() int
// Stop stops the handler
Stop(context.Context)
}
Handler handles incoming consensus messages
Click to show internal directories.
Click to hide internal directories.