mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
540c68d7ca
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
34 lines
873 B
C
34 lines
873 B
C
#ifndef LIGHTNING_GOSSIPD_GOSSIP_CONSTANTS_H
|
|
#define LIGHTNING_GOSSIPD_GOSSIP_CONSTANTS_H
|
|
|
|
/* BOLT #4:
|
|
*
|
|
* - Length: the maximum route length is limited to 20 hops.
|
|
*...
|
|
* 1. type: `onion_packet`
|
|
* 2. data:
|
|
* * [`1`:`version`]
|
|
* * [`33`:`public_key`]
|
|
* * [`20*65`:`hops_data`]
|
|
*/
|
|
#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)
|
|
|
|
/* BOLT #7:
|
|
*
|
|
* - MUST NOT send `announcement_signatures` messages until `funding_locked`
|
|
* has been sent AND the funding transaction has at least six confirmations.
|
|
*/
|
|
#define ANNOUNCE_MIN_DEPTH 6
|
|
|
|
#endif /* LIGHTNING_GOSSIPD_GOSSIP_CONSTANTS_H */
|