Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MaxFrameSize is set at 250000 bytes. MaxFrameSize = uint64(250000) )
Variables ¶
View Source
var NodeVer = &Version{
Major: 0,
Minor: 4,
Patch: 1,
}
NodeVer is the current node version.
Functions ¶
Types ¶
type Gossip ¶ added in v0.4.0
type Gossip struct {
Magic Magic
}
Gossip is a preprocessor/reader for gossip messages.
func (*Gossip) Process ¶ added in v0.4.0
Process a message that is passing through, by prepending magic and the message checksum, and finally by prepending the length.
func (*Gossip) ReadFrame ¶ added in v0.4.0
ReadFrame extract message from gossip frame, if no errors found.
func (*Gossip) ReadMessage ¶ added in v0.4.0
ReadMessage reads from the connection. TODO: Replace ReadMessage with ReadFrame.
type Magic ¶
type Magic uint8
Magic is the network that Dusk is running on.
func Extract ¶ added in v0.2.0
Extract the magic from io.Reader. In case of unknown Magic, it returns DevNet.
func MagicFromConfig ¶
func MagicFromConfig() Magic
MagicFromConfig reads the loaded magic config and tries to map it to magic identifier. Panic, if no match found.
type ServiceFlag ¶
type ServiceFlag uint64
ServiceFlag indicates the services provided by the Node.
const ( // FullNode indicates that a user is running the full node implementation of Dusk. FullNode ServiceFlag = 1 )
Click to show internal directories.
Click to hide internal directories.