mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
wire: add onion_defs.h to bolt-check, update quote.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
neil saitug
parent
fdf67d62ba
commit
fc02af12d0
@@ -4,7 +4,8 @@
|
|||||||
wire-wrongdir:
|
wire-wrongdir:
|
||||||
$(MAKE) -C .. wire-all
|
$(MAKE) -C .. wire-all
|
||||||
|
|
||||||
WIRE_HEADERS_NOGEN := wire/peer_wire.h \
|
WIRE_HEADERS_NOGEN := wire/onion_defs.h \
|
||||||
|
wire/peer_wire.h \
|
||||||
wire/wire.h \
|
wire/wire.h \
|
||||||
wire/wire_sync.h \
|
wire/wire_sync.h \
|
||||||
wire/wire_io.h
|
wire/wire_io.h
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
/* Macro definitions for constants used in BOLT #4 */
|
/* Macro definitions for constants used in BOLT #4 */
|
||||||
#ifndef LIGHTNING_WIRE_ONION_DEFS_H
|
#ifndef LIGHTNING_WIRE_ONION_DEFS_H
|
||||||
#define LIGHTNING_WIRE_ONION_DEFS_H
|
#define LIGHTNING_WIRE_ONION_DEFS_H
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
/* BOLT #4:
|
/* BOLT #4:
|
||||||
*
|
*
|
||||||
* The top byte of `failure-code` can be read as a set of flags:
|
* The top byte of `failure_code` can be read as a set of flags:
|
||||||
* * 0x8000 (BADONION): unparsable onion, encrypted by previous node.
|
* * 0x8000 (BADONION): unparsable onion encrypted by sending peer
|
||||||
* * 0x4000 (PERM): permanent failure (otherwise transient)
|
* * 0x4000 (PERM): permanent failure (otherwise transient)
|
||||||
* * 0x2000 (NODE): node failure (otherwise channel)
|
* * 0x2000 (NODE): node failure (otherwise channel)
|
||||||
* * 0x1000 (UPDATE): new channel update enclosed
|
* * 0x1000 (UPDATE): new channel update enclosed
|
||||||
|
|||||||
Reference in New Issue
Block a user