Module v2

Source
Expand description

Zcash addrv2 message node address serialization.

Zebra parses received IPv4 and IPv6 addresses in the AddrV2 format. But it ignores all other address types.

Zebra never sends addrv2 messages, because peers still accept addr (v1) messages.

Structs§

UnsupportedAddrV2NetworkIdError
The error returned when converting AddrV2::Unsupported fails.

Enums§

AddrV2 🔒
The second format used for Bitcoin node addresses. Contains a node address, its advertised services, and last-seen time. This struct is serialized and deserialized into addrv2 messages.

Constants§

ADDR_V2_IPV4_ADDR_SIZE
The size of Ipv4Addrs in addrv2 messages.
ADDR_V2_IPV4_NETWORK_ID
The network ID of Ipv4Addrs in addrv2 messages.
ADDR_V2_IPV6_ADDR_SIZE
The size of Ipv6Addrs in addrv2 messages.
ADDR_V2_IPV6_NETWORK_ID
The network ID of Ipv6Addrs in addrv2 messages.
ADDR_V2_MIN_SIZE 🔒
A serialized addrv2 has:
MAX_ADDR_V2_ADDR_SIZE
The maximum permitted size of the addr field in addrv2 messages.