They tell us what paths they're using, so we can adjust capacity estimates accordingly. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Header from folded patch 'reserve-fixup.patch': fixup! askrene: reservation implementation.
27 lines
629 B
C
27 lines
629 B
C
#ifndef LIGHTNING_PLUGINS_ASKRENE_ASKRENE_H
|
|
#define LIGHTNING_PLUGINS_ASKRENE_ASKRENE_H
|
|
#include "config.h"
|
|
#include <bitcoin/short_channel_id.h>
|
|
#include <ccan/list/list.h>
|
|
#include <common/amount.h>
|
|
|
|
/* 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;
|
|
/* List of layers */
|
|
struct list_head layers;
|
|
/* In-flight payment attempts */
|
|
struct reserve_hash *reserved;
|
|
};
|
|
|
|
#endif /* LIGHTNING_PLUGINS_ASKRENE_ASKRENE_H */
|