2024-04-08 15:33:14 +01:00
|
|
|
#ifndef LIGHTNING_PLUGINS_RENEPAY_ROUTEBUILDER_H
|
|
|
|
#define LIGHTNING_PLUGINS_RENEPAY_ROUTEBUILDER_H
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
#include <ccan/tal/tal.h>
|
|
|
|
#include <common/gossmap.h>
|
2024-05-04 10:48:13 +01:00
|
|
|
#include <plugins/renepay/disabledmap.h>
|
|
|
|
#include <plugins/renepay/payment_info.h>
|
2024-04-08 15:33:14 +01:00
|
|
|
#include <plugins/renepay/route.h>
|
|
|
|
#include <plugins/renepay/uncertainty.h>
|
|
|
|
|
2024-05-04 10:48:13 +01:00
|
|
|
struct route **get_routes(const tal_t *ctx,
|
|
|
|
struct payment_info *payment_info,
|
2024-04-08 15:33:14 +01:00
|
|
|
|
|
|
|
const struct node_id *source,
|
|
|
|
const struct node_id *destination,
|
2024-05-04 10:48:13 +01:00
|
|
|
struct gossmap *gossmap,
|
|
|
|
struct uncertainty *uncertainty,
|
|
|
|
struct disabledmap *disabledmap,
|
2024-04-08 15:33:14 +01:00
|
|
|
|
|
|
|
struct amount_msat amount_to_deliver,
|
2024-05-04 10:48:13 +01:00
|
|
|
struct amount_msat feebudget,
|
2024-05-06 10:13:45 +01:00
|
|
|
|
2024-05-04 10:48:13 +01:00
|
|
|
u64 *next_partid,
|
2024-05-06 10:13:45 +01:00
|
|
|
u64 groupid,
|
2024-04-08 15:33:14 +01:00
|
|
|
|
2024-05-04 10:48:13 +01:00
|
|
|
enum jsonrpc_errcode *ecode,
|
|
|
|
const char **fail);
|
2024-04-08 15:33:14 +01:00
|
|
|
|
|
|
|
#endif /* LIGHTNING_PLUGINS_RENEPAY_ROUTEBUILDER_H */
|