2020-12-16 04:13:32 +01:00
|
|
|
#ifndef LIGHTNING_PLUGINS_OFFERS_INVREQ_HOOK_H
|
|
|
|
#define LIGHTNING_PLUGINS_OFFERS_INVREQ_HOOK_H
|
|
|
|
#include "config.h"
|
|
|
|
#include <plugins/libplugin.h>
|
|
|
|
|
|
|
|
extern u32 cltv_final;
|
|
|
|
|
|
|
|
/* We got an onionmessage with an invreq! */
|
|
|
|
struct command_result *handle_invoice_request(struct command *cmd,
|
|
|
|
const char *buf,
|
|
|
|
const jsmntok_t *invreqtok,
|
2021-09-30 23:19:37 +02:00
|
|
|
/* Obsolete onion */
|
|
|
|
const jsmntok_t *replytok,
|
|
|
|
/* Modern onion */
|
|
|
|
struct tlv_onionmsg_payload_reply_path *reply_path);
|
2020-12-16 04:13:32 +01:00
|
|
|
#endif /* LIGHTNING_PLUGINS_OFFERS_INVREQ_HOOK_H */
|