Struct lightning::routing::utxo::UtxoFuture
source · pub struct UtxoFuture { /* private fields */ }
Expand description
Represents a future resolution of a UtxoLookup::get_utxo
query resolving async.
See UtxoResult::Async
and UtxoFuture::resolve
for more info.
Implementations§
source§impl UtxoFuture
impl UtxoFuture
sourcepub fn resolve_without_forwarding<L: Deref>(
&self,
graph: &NetworkGraph<L>,
result: Result<TxOut, UtxoLookupError>
)
pub fn resolve_without_forwarding<L: Deref>( &self, graph: &NetworkGraph<L>, result: Result<TxOut, UtxoLookupError> )
Resolves this future against the given graph
and with the given result
.
This is identical to calling UtxoFuture::resolve
with a dummy gossip
, disabling
forwarding the validated gossip message onwards to peers.
Because this may cause the NetworkGraph
’s processing_queue_high
to flip, in order
to allow us to interact with peers again, you should call PeerManager::process_events
after this.
sourcepub fn resolve<L: Deref, G: Deref<Target = NetworkGraph<L>>, U: Deref, GS: Deref<Target = P2PGossipSync<G, U, L>>>(
&self,
graph: &NetworkGraph<L>,
gossip: GS,
result: Result<TxOut, UtxoLookupError>
)
pub fn resolve<L: Deref, G: Deref<Target = NetworkGraph<L>>, U: Deref, GS: Deref<Target = P2PGossipSync<G, U, L>>>( &self, graph: &NetworkGraph<L>, gossip: GS, result: Result<TxOut, UtxoLookupError> )
Resolves this future against the given graph
and with the given result
.
The given gossip
is used to broadcast any validated messages onwards to all peers which
have available buffer space.
Because this may cause the NetworkGraph
’s processing_queue_high
to flip, in order
to allow us to interact with peers again, you should call PeerManager::process_events
after this.
Trait Implementations§
source§impl Clone for UtxoFuture
impl Clone for UtxoFuture
source§fn clone(&self) -> UtxoFuture
fn clone(&self) -> UtxoFuture
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more