mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-23 15:00:34 +01:00
Routes contain only routing information and the payment they're linked to can be obtained through the payment_hash. We remove the dependency of route building routines from the payment itself. In order to make plain payment information available we define a payment_info structure.
20 lines
648 B
C
20 lines
648 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 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 */
|