core-lightning/lightningd/onion_message.h
Rusty Russell 9d57612415 gossipd, channeld: handle onion messages in gossipd so we don't need a channel.
The previous onion_message code required a confirmed, not-shutting-down
channel, not just a connection.  That's overkill; plus before widespread
adoption we will want to connect directly as a last resort.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-01-09 14:34:35 +10:30

12 lines
358 B
C

#ifndef LIGHTNING_LIGHTNINGD_ONION_MESSAGE_H
#define LIGHTNING_LIGHTNINGD_ONION_MESSAGE_H
#include "config.h"
#include <ccan/short_types/short_types.h>
struct lightningd;
void handle_onionmsg_to_us(struct lightningd *ld, const u8 *msg);
void handle_onionmsg_forward(struct lightningd *ld, const u8 *msg);
#endif /* LIGHTNING_LIGHTNINGD_ONION_MESSAGE_H */