Skip to main content

Module peer_protocol

Module peer_protocol 

Source
Expand description

Untrusted selective exchange, separate from the authenticated local control API. Transport identity proves which peer answered, not chain membership, record validity or completeness. URMA V0 records and proofs are unchanged.

Structs§

GossipPeer
A gossiped routing hint: base58 peer identity, its addresses and the Unix second the answering node last reached it. Never chain or record evidence.
InventoryPage
Complete only for scanned blocks in [scanned_from, scanned_through] within the requested range. scanned_from is the answering node’s application start: below it the node never scanned, so an empty page there is no claim at all.
Placement
One transaction’s position in a block the answering node fully scanned.
Request
Response

Enums§

Kind
Reply

Constants§

INVENTORY_ENTRIES
Most placements in one inventory page.
INVENTORY_LIMIT
Encoded inventory response frame, enforced by both writer and reader.
INVENTORY_SPAN
Widest inventory request, in heights (to_height - from_height).
PARENT_LIMIT
Raw parent bytes, matching the local RPC 16M-hex admission cap.
PEERS_LIMIT
Encoded peers response frame, enforced by both writer and reader.
PEERS_MAX
Most peers in one gossip reply; limit: 0 is a bare chain probe.
PEER_ADDRESSES_MAX
Most addresses gossiped per peer.
PROTOCOL
REQUEST_LIMIT
RESPONSE_LIMIT
VERSION