package
0.108.1
Repository: https://github.com/nspcc-dev/neo-go.git
Documentation: pkg.go.dev

# Functions

NewAddressAndTime creates a new AddressAndTime object.
NewAddressList creates a list for n AddressAndTime elements.
NewExtensible creates a new extensible payload.
NewGetBlockByIndex returns GetBlockByIndex payload with the specified start index and count.
NewGetBlocks returns a pointer to a GetBlocks object.
NewInventory returns a pointer to an Inventory.
NewMPTInventory return a pointer to an MPTInventory.
NewNullPayload returns zero-sized stub payload.
NewP2PNotaryRequestFromBytes decodes a P2PNotaryRequest from the given bytes.
NewPing creates new Ping payload.
NewVersion returns a pointer to a Version payload.

# Constants

List of valid InventoryTypes.
ConsensusCategory is a message category for consensus-related extensible payloads.
List of valid InventoryTypes.
MaxAddrsCount is the maximum number of addresses that could be packed into one payload.
Maximum inventory hashes number is limited to 500.
Users can at most request 2k headers.
MaxMPTHashesCount is the maximum number of the requested MPT nodes hashes.
MaxSize is the maximum payload size in decompressed form.
MaxUserAgentLength is the limit for the user agent field.
List of valid InventoryTypes.
List of valid InventoryTypes.

# Variables

ErrNoHeaders is returned for zero-elements Headers payload which is considered to be invalid.
ErrTooManyHeaders is an error returned when too many headers have been received.

# Structs

AddressAndTime payload.
AddressList is a list with AddrAndTime.
Extensible represents a payload containing arbitrary data.
GetBlockByIndex payload.
GetBlocks contains getblocks message payload fields.
Headers payload.
Inventory payload.
MerkleBlock represents a merkle block packet payload.
MPTData represents a set of serialized MPT nodes.
MPTInventory payload.
NullPayload is a dummy payload with no fields.
P2PNotaryRequest contains main and fallback transactions for the Notary service.
Ping payload for ping/pong payloads.
Version payload.

# Interfaces

Payload is anything that can be binary encoded/decoded.

# Type aliases

InventoryType is the type of an object in the Inventory message.