Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUndefined = errors.New("undefined error")
)
Common errors
Functions ¶
This section is empty.
Types ¶
type AppSender ¶ added in v1.19.13
type AppSender = consensus_core.AppSender
AppSender sends application-level messages
type Message ¶
type Message struct {
Type MessageType
NodeID ids.NodeID
Content []byte
}
Message represents a network message
type MessageType ¶
type MessageType uint32
MessageType defines the type of a message
const ( // PendingTxs indicates pending transactions PendingTxs MessageType = iota // PutBlock indicates a block to be added PutBlock // GetBlock indicates a request for a block GetBlock // GetAccepted indicates a request for accepted blocks GetAccepted // Accepted indicates an accepted block Accepted // GetAncestors indicates a request for ancestors GetAncestors // MultiPut indicates multiple blocks MultiPut // GetFailed indicates a failed get request GetFailed // QueryFailed indicates a failed query QueryFailed // Chits indicates chits message Chits // ChitsV2 indicates chits v2 message ChitsV2 // GetAcceptedFrontier indicates a request for accepted frontier GetAcceptedFrontier // AcceptedFrontier indicates accepted frontier AcceptedFrontier // GetAcceptedFrontierFailed indicates a failed frontier request GetAcceptedFrontierFailed // AppRequest indicates an app request AppRequest // AppResponse indicates an app response AppResponse // AppGossip indicates app gossip AppGossip )
func (MessageType) String ¶
func (m MessageType) String() string
String returns the string representation of the message type
Click to show internal directories.
Click to hide internal directories.