status-go/wakuv1/v1/const.go
Patryk Osmaczko ca92f67014 chore_: rename waku package to wakuv1
This is to free the `waku` namespace for interfaces and types that will
be moved from `eth-node`.
2025-01-13 18:55:01 +01:00

20 lines
944 B
Go

package v1
// Waku protocol parameters
const (
Version = uint64(1) // Peer version number
VersionStr = "1" // The same, as a string
Name = "waku" // Nickname of the protocol
// Waku protocol message codes, according to https://github.com/vacp2p/specs/blob/master/specs/waku/waku-0.md
statusCode = 0 // used in the handshake
messagesCode = 1 // regular message
statusUpdateCode = 22 // update of settings
batchAcknowledgedCode = 11 // confirmation that batch of envelopes was received
messageResponseCode = 12 // includes confirmation for delivery and information about errors
p2pRequestCompleteCode = 125 // peer-to-peer message, used by Dapp protocol
p2pRequestCode = 126 // peer-to-peer message, used by Dapp protocol
p2pMessageCode = 127 // peer-to-peer message (to be consumed by the peer, but not forwarded any further)
NumberOfMessageCodes = 128
)