consensus/p2pool/p2p/messages.go
DataHoarder b0fe55c8a8
Update to protocol 1.2, implement BlockNotify
* Bump Software version to 3.0
* Remove old fast sync extension
* SideChain: fix for out of order blocks
* SideChain: shuffle blocks in tests
2023-07-21 16:20:41 +02:00

24 lines
459 B
Go

package p2p
type MessageId uint8
// from p2p_server.h
const (
MessageHandshakeChallenge = MessageId(iota)
MessageHandshakeSolution
MessageListenPort
MessageBlockRequest
MessageBlockResponse
MessageBlockBroadcast
MessagePeerListRequest
MessagePeerListResponse
// MessageBlockBroadcastCompact Protocol 1.1
MessageBlockBroadcastCompact
// MessageBlockNotify Protocol 1.2
MessageBlockNotify
MessageInternal = 0xff
)
type InternalMessageId uint64