Module lightning_block_sync::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§
- A struct which wraps a
UtxoSource
and a few LDK objects and implements the LDKUtxoLookup
trait. - TokioSpawner
tokio
A trivialFutureSpawner
which delegates totokio::spawn
.
Traits§
- A generic trait which is able to spawn futures in the background.
- 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).