From fc02af12d03f8a829c3d3c996880faf72f603bf0 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 14 Sep 2018 08:13:12 +0930 Subject: [PATCH] wire: add onion_defs.h to bolt-check, update quote. Signed-off-by: Rusty Russell --- wire/Makefile | 3 ++- wire/onion_defs.h | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wire/Makefile b/wire/Makefile index 35c7277e3..86c7d88c0 100644 --- a/wire/Makefile +++ b/wire/Makefile @@ -4,7 +4,8 @@ wire-wrongdir: $(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_sync.h \ wire/wire_io.h diff --git a/wire/onion_defs.h b/wire/onion_defs.h index 2902e8714..3f1b9c614 100644 --- a/wire/onion_defs.h +++ b/wire/onion_defs.h @@ -1,11 +1,12 @@ /* Macro definitions for constants used in BOLT #4 */ #ifndef LIGHTNING_WIRE_ONION_DEFS_H #define LIGHTNING_WIRE_ONION_DEFS_H +#include "config.h" /* BOLT #4: * - * The top byte of `failure-code` can be read as a set of flags: - * * 0x8000 (BADONION): unparsable onion, encrypted by previous node. + * 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