Documentation ¶
Index ¶
Constants ¶
View Source
const ( // UnknownProtoMsgType is an unknown message type that is not expected UnknownProtoMsgType uint32 = 0 // MsgTxProtoMsgType is for transactions broadcasted within the network MsgTxProtoMsgType uint32 = 1 // MsgBlockProtoMsgType is for blocks broadcasted within the network MsgBlockProtoMsgType uint32 = 2 // MsgBlockSyncReqType is for requests among peers to sync blocks MsgBlockSyncReqType uint32 = 3 // MsgBlockSyncDataType is the response to messages of type MsgBlockSyncReqType MsgBlockSyncDataType uint32 = 4 // MsgActionType is the action message MsgActionType uint32 = 5 // MsgConsensusType is for consensus message MsgConsensusType uint32 = 6 // TestPayloadType is a test payload message type TestPayloadType uint32 = 10001 )
View Source
const (
MagicBroadcastMsgHeader uint32 = 4689
)
Magic header to identify IoTex traffic
Variables ¶
This section is empty.
Functions ¶
func GetTypeFromProtoMsg ¶
GetTypeFromProtoMsg retrieves the proto message type
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.