mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54:22 +01:00
EXPERMENTAL_FEATURES: Import onion message types.
This tracks https://github.com/lightningnetwork/lightning-rfc/pull/759 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
14
wire/wire.h
14
wire/wire.h
@@ -153,4 +153,18 @@ struct witscript *fromwire_witscript(const tal_t *ctx,
|
||||
void fromwire_chainparams(const u8 **cursor, size_t *max,
|
||||
const struct chainparams **chainparams);
|
||||
|
||||
#if !EXPERIMENTAL_FEATURES
|
||||
/* Stubs, as this subtype is only defined when EXPERIMENTAL_FEATURES */
|
||||
struct onionmsg_path;
|
||||
|
||||
static inline void towire_onionmsg_path(u8 **p, const struct onionmsg_path *onionmsg_path)
|
||||
{
|
||||
}
|
||||
|
||||
static inline struct onionmsg_path *
|
||||
fromwire_onionmsg_path(const tal_t *ctx, const u8 **cursor, size_t *plen)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
#endif /* EXPERIMENTAL_FEATURES */
|
||||
#endif /* LIGHTNING_WIRE_WIRE_H */
|
||||
|
||||
Reference in New Issue
Block a user