2020-12-16 03:13:32 +00: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 08:50:13 +00:00
|
|
|
extern u16 cltv_final;
|
2022-11-09 02:32:00 +00:00
|
|
|
extern u32 blockheight;
|
|
|
|
extern struct secret invoicesecret_base;
|
|
|
|
extern struct pubkey id;
|
2020-12-16 03:13:32 +00:00
|
|
|
|
|
|
|
/* We got an onionmessage with an invreq! */
|
|
|
|
struct command_result *handle_invoice_request(struct command *cmd,
|
2021-11-30 03:06:04 +00:00
|
|
|
const u8 *invreqbin,
|
2022-10-17 01:44:39 +01:00
|
|
|
struct blinded_path *reply_path STEALS);
|
2020-12-16 03:13:32 +00:00
|
|
|
#endif /* LIGHTNING_PLUGINS_OFFERS_INVREQ_HOOK_H */
|