static Result_NoneErrorZ |
UtilMethods.FilesystemPersister_persist_network_graph(String data_dir,
NetworkGraph network_graph) |
Write the provided `NetworkGraph` to the path provided at `FilesystemPersister`
initialization, within a file called \"network_graph\"
|
static Result_RouteLightningErrorZ |
UtilMethods.find_route(byte[] our_node_pubkey,
RouteParameters route_params,
NetworkGraph network,
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) |
Creates a new router using the given [`NetworkGraph`], a [`Logger`], and a randomness source
`random_seed_bytes`.
|
static NetGraphMsgHandler |
NetGraphMsgHandler.of(NetworkGraph network_graph,
Option_AccessZ chain_access,
Logger logger) |
Creates a new tracker of the actual state of the network of channels and nodes,
assuming an existing Network Graph.
|
static ProbabilisticScorer |
ProbabilisticScorer.of(ProbabilisticScoringParameters params,
NetworkGraph network_graph) |
Creates a new scorer using the given scoring parameters for sending payments from a node
through a network graph.
|
static Result_NetworkGraphDecodeErrorZ |
Result_NetworkGraphDecodeErrorZ.ok(NetworkGraph o) |
Creates a new CResult_NetworkGraphDecodeErrorZ in the success state.
|
static Result_ProbabilisticScorerDecodeErrorZ |
Result_ProbabilisticScorerDecodeErrorZ.ok(ProbabilisticScoringParameters o_params,
NetworkGraph o_network_graph) |
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) |
Read a ProbabilisticScorer from a byte array, created by ProbabilisticScorer_write
|