core-lightning/plugins/renepay/json.h
Lagrang3 d6667e305b renepay: review routetracking
Add missing uncertainty update after payment success.

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
2024-08-12 13:27:34 -07:00

24 lines
747 B
C

#ifndef LIGHTNING_PLUGINS_RENEPAY_JSON_H
#define LIGHTNING_PLUGINS_RENEPAY_JSON_H
#include "config.h"
#include <plugins/renepay/payment.h>
#include <plugins/renepay/route.h>
struct routekey *tal_routekey_from_json(const tal_t *ctx, const char *buf,
const jsmntok_t *obj);
struct route *tal_route_from_json(const tal_t *ctx, const char *buf,
const jsmntok_t *obj);
struct payment_result *tal_sendpay_result_from_json(const tal_t *ctx,
const char *buffer,
const jsmntok_t *toks);
void json_add_payment(struct json_stream *s, const struct payment *payment);
void json_add_route(struct json_stream *s, const struct route *route,
const struct payment *payment);
#endif /* LIGHTNING_PLUGINS_RENEPAY_JSON_H */