# Functions
NewAddressAndTime creates a new AddressAndTime object.
NewAddressList creates a list for n AddressAndTime elements.
NewExtensible creates new extensible payload.
NewGetBlockByIndex returns GetBlockByIndex payload with specified start index and count.
NewGetBlocks returns a pointer to a GetBlocks object.
NewInventory return a pointer to an Inventory.
NewMPTInventory return a pointer to an MPTInventory.
NewNullPayload returns zero-sized stub payload.
NewPing creates new Ping payload.
NewVersion returns a pointer to a Version payload.
# Constants
List of valid InventoryTypes.
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 header.
MaxMPTHashesCount is the maximum number of requested MPT nodes hashes.
MaxSize is maximum payload size in decompressed form.
MaxUserAgentLength is the limit for 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 were received.
# Structs
AddressAndTime payload.
AddressList is a list with AddrAndTime.
Extensible represents 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 the set of serialized MPT nodes.
MPTInventory payload.
NullPayload is a dummy payload with no fields.
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.