core-lightning/plugins/askrene/explain_failure.h
Rusty Russell 630ec6a566 askrene: give better feedback when we can't find a suitable route.
This turns out to be critical for users: also stops them from
bothering us when their node is offline or has insufficient capacity!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-10-04 11:27:53 +09:30

17 lines
507 B
C

#ifndef LIGHTNING_PLUGINS_ASKRENE_EXPLAIN_FAILURE_H
#define LIGHTNING_PLUGINS_ASKRENE_EXPLAIN_FAILURE_H
#include "config.h"
#include <common/amount.h>
struct route_query;
struct gossmap_node;
/* When MCF returns nothing, try to explain why */
const char *explain_failure(const tal_t *ctx,
const struct route_query *rq,
const struct gossmap_node *srcnode,
const struct gossmap_node *dstnode,
struct amount_msat amount);
#endif /* LIGHTNING_PLUGINS_ASKRENE_EXPLAIN_FAILURE_H */