|
|
@ -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 |
|
|
|