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>
|
|
|
|
|
2022-03-22 09:50:13 +01:00
|
|
|
extern u16 cltv_final;
|
2020-12-16 04:13:32 +01:00
|
|
|
|
|
|
|
/* We got an onionmessage with an invreq! */
|
|
|
|
struct command_result *handle_invoice_request(struct command *cmd,
|
2021-11-30 04:06:04 +01:00
|
|
|
const u8 *invreqbin,
|
2022-03-28 01:10:54 +02:00
|
|
|
struct tlv_onionmsg_payload_reply_path *reply_path STEALS,
|
|
|
|
struct tlv_obs2_onionmsg_payload_reply_path *obs2_reply_path STEALS);
|
2020-12-16 04:13:32 +01:00
|
|
|
#endif /* LIGHTNING_PLUGINS_OFFERS_INVREQ_HOOK_H */
|