mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
plugins/offers: add code to catch invoice_request onion messages.
We prepare an invoice, but there's no code to send an error reply yet (future patch). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
08e110b568
commit
9d75fbe237
13
plugins/offers_invreq_hook.h
Normal file
13
plugins/offers_invreq_hook.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#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,
|
||||
const jsmntok_t *replytok);
|
||||
#endif /* LIGHTNING_PLUGINS_OFFERS_INVREQ_HOOK_H */
|
||||
Reference in New Issue
Block a user