core-lightning/lightningd/onion_message.h
Rusty Russell f2a4bd6ad8 wire: import new onion message spec.
One change from the obsolete version handling, gossipd will no longer send
forwarding onion msgs to lightningd, but will forward it directly.
That was the effect before, anyway.

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

14 lines
433 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_obs_onionmsg_to_us(struct lightningd *ld, const u8 *msg);
void handle_obs_onionmsg_forward(struct lightningd *ld, const u8 *msg);
void handle_onionmsg_to_us(struct lightningd *ld, const u8 *msg);
#endif /* LIGHTNING_LIGHTNINGD_ONION_MESSAGE_H */