core-lightning/wire/onion_defs.h
Rusty Russell cb2c4963f2 bolt12: allow first_node_id in blinded path to be a scid.
We don't actually support it yet, but this threads through the type change,
puts it in "decode" etc.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-05-12 19:11:43 -05:00

21 lines
630 B
C

/* Macro definitions for constants used in BOLT #4 */
#ifndef LIGHTNING_WIRE_ONION_DEFS_H
#define LIGHTNING_WIRE_ONION_DEFS_H
#include "config.h"
#include <common/sciddir_or_pubkey.h>
/* BOLT #4:
*
* The top byte of `failure_code` can be read as a set of flags:
* * 0x8000 (BADONION): unparsable onion encrypted by sending peer
* * 0x4000 (PERM): permanent failure (otherwise transient)
* * 0x2000 (NODE): node failure (otherwise channel)
* * 0x1000 (UPDATE): new channel update enclosed
*/
#define BADONION 0x8000
#define PERM 0x4000
#define NODE 0x2000
#define UPDATE 0x1000
#endif /* LIGHTNING_WIRE_ONION_DEFS_H */