Module gossip

Source
Expand description

When fetching gossip from peers, lightning nodes need to validate that gossip against the current UTXO set. This module defines an implementation of the LDK API required to do so against a BlockSource which implements a few additional methods for accessing the UTXO set.

Structs§

GossipVerifier
A struct which wraps a UtxoSource and a few LDK objects and implements the LDK UtxoLookup trait.
TokioSpawnertokio
A trivial FutureSpawner which delegates to tokio::spawn.

Traits§

FutureSpawner
A generic trait which is able to spawn futures in the background.
UtxoSource
A trait which extends BlockSource and can be queried to fetch the block at a given height as well as whether a given output is unspent (i.e. a member of the current UTXO set).