static Result_RouteLightningErrorZ |
UtilMethods.build_route_from_hops(byte[] our_node_pubkey,
byte[][] hops,
RouteParameters route_params,
NetworkGraph network_graph,
Logger logger,
byte[] random_seed_bytes) |
Construct a route from us (payer) to the target node (payee) via the given hops (which should
exclude the payer, but include the payee).
|
static Result_RouteLightningErrorZ |
UtilMethods.find_route(byte[] our_node_pubkey,
RouteParameters route_params,
NetworkGraph network_graph,
ChannelDetails[] first_hops,
Logger logger,
Score scorer,
byte[] random_seed_bytes) |
Finds a route from us (payer) to the given target node (payee).
|
static DefaultRouter |
DefaultRouter.of(NetworkGraph network_graph,
Logger logger,
byte[] random_seed_bytes,
LockableScore scorer) |
Creates a new router.
|
static P2PGossipSync |
P2PGossipSync.of(NetworkGraph network_graph,
Option_UtxoLookupZ utxo_lookup,
Logger logger) |
Creates a new tracker of the actual state of the network of channels and nodes,
assuming an existing [`NetworkGraph`].
|
static ProbabilisticScorer |
ProbabilisticScorer.of(ProbabilisticScoringParameters params,
NetworkGraph network_graph,
Logger logger) |
Creates a new scorer using the given scoring parameters for sending payments from a node
through a network graph.
|
static RapidGossipSync |
RapidGossipSync.of(NetworkGraph network_graph,
Logger logger) |
Instantiate a new [`RapidGossipSync`] instance.
|
static Result_ProbabilisticScorerDecodeErrorZ |
Result_ProbabilisticScorerDecodeErrorZ.ok(ProbabilisticScoringParameters o_params,
NetworkGraph o_network_graph,
Logger o_logger) |
Creates a new CResult_ProbabilisticScorerDecodeErrorZ in the success state.
|
Result_NoneErrorZ |
Persister.persist_graph(NetworkGraph network_graph) |
Persist the given [`NetworkGraph`] to disk, returning an error if persistence failed.
|
Result_NoneErrorZ |
Persister.PersisterInterface.persist_graph(NetworkGraph network_graph) |
Persist the given [`NetworkGraph`] to disk, returning an error if persistence failed.
|
static Result_ProbabilisticScorerDecodeErrorZ |
ProbabilisticScorer.read(byte[] ser,
ProbabilisticScoringParameters arg_a,
NetworkGraph arg_b,
Logger arg_c) |
Read a ProbabilisticScorer from a byte array, created by ProbabilisticScorer_write
|
void |
UtxoFuture.resolve(NetworkGraph graph,
P2PGossipSync gossip,
Result_TxOutUtxoLookupErrorZ result) |
Resolves this future against the given `graph` and with the given `result`.
|
void |
UtxoFuture.resolve_without_forwarding(NetworkGraph graph,
Result_TxOutUtxoLookupErrorZ result) |
Resolves this future against the given `graph` and with the given `result`.
|