Skip to main content

Module peer

Module peer 

Source
Expand description

Explicitly started URMA peer transport. Noise authenticates the remote transport identity; packages still need independent Engine admission. There are no built-in seeds, wallet keys or implicit listeners. Names in explicitly dialed /dns* addresses resolve through the system resolver.

Structsยง

OverlayCommitSource
Tries one window of configured peers per fetch; successive fetches move to the next window, so every peer is visited. verify_parent binds bytes to the TXID; a peer whose bytes fail it only lets the next peer be tried and is disconnected so it keeps no outbound slot. Engine verification is final.
PeerNetwork
Owns one network thread and one bounded archive-reader thread. Drop requests shutdown and joins both. An archive operation already running is not forcibly interrupted. Source handles do not keep the network alive after this owner.
PeerSource
A configured untrusted package source. Metadata is matched to the request; proof verification and independent chain selection belong to the caller. Cloning a source never dials; fetch performs the bounded request.