mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-23 15:00:34 +01:00
27 lines
600 B
C
27 lines
600 B
C
|
#ifndef LIGHTNING_PLUGINS_ASKRENE_ASKRENE_H
|
||
|
#define LIGHTNING_PLUGINS_ASKRENE_ASKRENE_H
|
||
|
#include "config.h"
|
||
|
|
||
|
/* We reserve a path being used. This records how many and how much */
|
||
|
struct reserve {
|
||
|
size_t num_htlcs;
|
||
|
struct short_channel_id_dir sciddir;
|
||
|
struct amount_msat amount;
|
||
|
};
|
||
|
|
||
|
/* A single route. */
|
||
|
struct route {
|
||
|
/* Actual path to take */
|
||
|
struct route_hop *hops;
|
||
|
/* Probability estimate (0-1) */
|
||
|
double success_prob;
|
||
|
};
|
||
|
|
||
|
/* Grab-bag of "globals" for this plugin */
|
||
|
struct askrene {
|
||
|
struct plugin *plugin;
|
||
|
struct gossmap *gossmap;
|
||
|
};
|
||
|
|
||
|
#endif /* LIGHTNING_PLUGINS_ASKRENE_ASKRENE_H */
|