dogemap

package
v0.0.0-...-f7c15ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeDatabaseAndTestNodes

func InitializeDatabaseAndTestNodes()

Much InitializeDatabaseAndTestNodes initializes the database and tests Dogecoin nodes

func PawVersionMessage

func PawVersionMessage() []byte

PawVersionMessage creates the version message payload

func RunHandshakePeriodically

func RunHandshakePeriodically()

Types

type NetAddr

type NetAddr struct {
	Services uint64
	IP       [4]byte
	Port     uint16
}

NetAddr represents the structure of a network address

type VersionMessage

type VersionMessage struct {
	Version    int32
	Services   uint64
	Timestamp  int64
	RemoteAddr NetAddr
	LocalAddr  NetAddr
	Agent      string
	Nonce      uint64
	Height     int32
	Relay      bool
}

VersionMessage represents the structure of the version message

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL