mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
gossipd/gossip_constants.h: Single place for BOLT constants.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
b965ef7d1d
commit
540c68d7ca
@@ -6,21 +6,11 @@
|
||||
#include <ccan/htable/htable_type.h>
|
||||
#include <ccan/time/time.h>
|
||||
#include <gossipd/broadcast.h>
|
||||
#include <gossipd/gossip_constants.h>
|
||||
#include <gossipd/gossip_store.h>
|
||||
#include <wire/gen_onion_wire.h>
|
||||
#include <wire/wire.h>
|
||||
|
||||
#define ROUTING_MAX_HOPS 20
|
||||
/* BOLT #7:
|
||||
*
|
||||
* The `flags` bitfield...individual bits:
|
||||
*...
|
||||
* | 0 | `direction` | Direction this update refers to. |
|
||||
* | 1 | `disable` | Disable the channel. |
|
||||
*/
|
||||
#define ROUTING_FLAGS_DIRECTION (1 << 0)
|
||||
#define ROUTING_FLAGS_DISABLED (1 << 1)
|
||||
|
||||
struct half_chan {
|
||||
/* Cached `channel_update` which initialized below (or NULL) */
|
||||
const u8 *channel_update;
|
||||
|
||||
Reference in New Issue
Block a user