Struct lightning_signer::chain::tracker::ChainTracker[][src]

pub struct ChainTracker<L: ChainListener + Ord> {
    pub headers: VecDeque<BlockHeader>,
    pub tip: BlockHeader,
    pub height: u32,
    pub network: Network,
    pub listeners: Map<L, ListenSlot>,
}
Expand description

Track chain, with basic validation

Fields

headers: VecDeque<BlockHeader>

headers past the tip

tip: BlockHeader

tip header

height: u32

height

network: Network

The network

listeners: Map<L, ListenSlot>

listeners

Implementations

Create a new tracker

Current chain tip header

Headers past the tip

Height of current chain tip

Remove block at tip due to reorg

Add a block, which becomes the new tip

Add a listener and initialize the watched outpoint set

Add more watches to a listener

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.