Skip to main content

Module p2p

Module p2p 

Source

Re-exports§

pub use crate::light::LightSync;
pub use crate::light::Progress;

Structs§

Anchor
Legacy checkpoint bootstrap. Its first successor is pinned rather than contextually retargeted, and initial median-time checks use only the locally available suffix. Use HeaderBootstrap for full preceding context from the first successor; this compatibility API does not synthesize that history.
Discovery
Gossiped
HeaderBootstrap
Explicit, checkpoint-relative bootstrap with sufficient preceding history for difficulty and median-time checks from the first successor onwards.
HeaderChain
Hello
P2pProvider
P2P header view rooted in a trusted checkpoint and existing local cache. Typed results establish the limited verification described by VerifiedBlock.
Peer
VerifiedBlock
A block whose hash, transaction Merkle root and witness commitment were checked against the provider’s active header at acquisition time.

Enums§

Message
Next

Functions§

context_headers
Ancestors before the anchor, excluding the anchor itself. The extra anchor yields lookback+1 preceding headers and the full median-time window.