Class UtxoFuture


  • public class UtxoFuture
    extends Object
    Represents a future resolution of a [`UtxoLookup::get_utxo`] query resolving async. See [`UtxoResult::Async`] and [`UtxoFuture::resolve`] for more info.
    • Method Detail

      • of

        public static UtxoFuture of()
        Builds a new future for later resolution.
      • resolve_without_forwarding

        public void resolve_without_forwarding​(NetworkGraph graph,
                                               Result_TxOutUtxoLookupErrorZ result)
        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. [`processing_queue_high`]: crate::ln::msgs::RoutingMessageHandler::processing_queue_high [`PeerManager::process_events`]: crate::ln::peer_handler::PeerManager::process_events
      • resolve

        public void resolve​(NetworkGraph graph,
                            P2PGossipSync gossip,
                            Result_TxOutUtxoLookupErrorZ result)
        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. [`processing_queue_high`]: crate::ln::msgs::RoutingMessageHandler::processing_queue_high [`PeerManager::process_events`]: crate::ln::peer_handler::PeerManager::process_events