Documentation ¶
Index ¶
- type Handler
- func (h *Handler) Accepted(validatorID ids.ShortID, requestID uint32, containerIDs ids.Set)
- func (h *Handler) AcceptedFrontier(validatorID ids.ShortID, requestID uint32, containerIDs ids.Set)
- func (h *Handler) Chits(validatorID ids.ShortID, requestID uint32, votes ids.Set)
- func (h *Handler) Context() *snow.Context
- func (h *Handler) Dispatch()
- func (h *Handler) Get(validatorID ids.ShortID, requestID uint32, containerID ids.ID)
- func (h *Handler) GetAccepted(validatorID ids.ShortID, requestID uint32, containerIDs ids.Set)
- func (h *Handler) GetAcceptedFailed(validatorID ids.ShortID, requestID uint32)
- func (h *Handler) GetAcceptedFrontier(validatorID ids.ShortID, requestID uint32)
- func (h *Handler) GetAcceptedFrontierFailed(validatorID ids.ShortID, requestID uint32)
- func (h *Handler) GetFailed(validatorID ids.ShortID, requestID uint32, containerID ids.ID)
- func (h *Handler) Initialize(engine common.Engine, msgChan <-chan common.Message, bufferSize int)
- func (h *Handler) Notify(msg common.Message)
- func (h *Handler) PullQuery(validatorID ids.ShortID, requestID uint32, blockID ids.ID)
- func (h *Handler) PushQuery(validatorID ids.ShortID, requestID uint32, blockID ids.ID, block []byte)
- func (h *Handler) Put(validatorID ids.ShortID, requestID uint32, containerID ids.ID, ...)
- func (h *Handler) QueryFailed(validatorID ids.ShortID, requestID uint32)
- func (h *Handler) Shutdown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler passes incoming messages from the network to the consensus engine (Actually, it receives the incoming messages from a ChainRouter, but same difference)
func (*Handler) Accepted ¶
Accepted passes a Accepted message received from the network to the consensus engine.
func (*Handler) AcceptedFrontier ¶
AcceptedFrontier passes a AcceptedFrontier message received from the network to the consensus engine.
func (*Handler) Chits ¶
Chits passes a Chits message received from the network to the consensus engine.
func (*Handler) Dispatch ¶
func (h *Handler) Dispatch()
Dispatch waits for incoming messages from the network and, when they arrive, sends them to the consensus engine
func (*Handler) GetAccepted ¶
GetAccepted passes a GetAccepted message received from the network to the consensus engine.
func (*Handler) GetAcceptedFailed ¶
GetAcceptedFailed passes a GetAcceptedFailed message received from the network to the consensus engine.
func (*Handler) GetAcceptedFrontier ¶
GetAcceptedFrontier passes a GetAcceptedFrontier message received from the network to the consensus engine.
func (*Handler) GetAcceptedFrontierFailed ¶
GetAcceptedFrontierFailed passes a GetAcceptedFrontierFailed message received from the network to the consensus engine.
func (*Handler) Initialize ¶
Initialize this consensus handler
func (*Handler) PullQuery ¶
PullQuery passes a PullQuery message received from the network to the consensus engine.
func (*Handler) PushQuery ¶
func (h *Handler) PushQuery(validatorID ids.ShortID, requestID uint32, blockID ids.ID, block []byte)
PushQuery passes a PushQuery message received from the network to the consensus engine.
func (*Handler) Put ¶
func (h *Handler) Put(validatorID ids.ShortID, requestID uint32, containerID ids.ID, container []byte)
Put passes a Put message received from the network to the consensus engine.
func (*Handler) QueryFailed ¶
QueryFailed passes a QueryFailed message received from the network to the consensus engine.