2020-12-16 13:43:32 +10:30
|
|
|
#ifndef LIGHTNING_PLUGINS_OFFERS_INVREQ_HOOK_H
|
|
|
|
#define LIGHTNING_PLUGINS_OFFERS_INVREQ_HOOK_H
|
|
|
|
#include "config.h"
|
|
|
|
#include <plugins/libplugin.h>
|
|
|
|
|
2022-03-22 19:20:13 +10:30
|
|
|
extern u16 cltv_final;
|
2022-11-09 13:02:00 +10:30
|
|
|
extern u32 blockheight;
|
|
|
|
extern struct secret invoicesecret_base;
|
|
|
|
extern struct pubkey id;
|
2024-05-13 18:19:45 +09:30
|
|
|
extern bool disable_connect;
|
2020-12-16 13:43:32 +10:30
|
|
|
|
|
|
|
/* We got an onionmessage with an invreq! */
|
|
|
|
struct command_result *handle_invoice_request(struct command *cmd,
|
2021-11-30 13:36:04 +10:30
|
|
|
const u8 *invreqbin,
|
2022-10-17 11:14:39 +10:30
|
|
|
struct blinded_path *reply_path STEALS);
|
2020-12-16 13:43:32 +10:30
|
|
|
#endif /* LIGHTNING_PLUGINS_OFFERS_INVREQ_HOOK_H */
|