Skip to content

Commit

Permalink
features: define LOCAL_GOSSIP_QUERIES feature.
Browse files Browse the repository at this point in the history
From BOLT #9 proposed update.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed May 23, 2018
1 parent 2f6c3c2 commit 0413128
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/features.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
#include <wire/peer_wire.h>

static const u32 local_features[] = {
LOCAL_INITIAL_ROUTING_SYNC
LOCAL_INITIAL_ROUTING_SYNC,
LOCAL_GOSSIP_QUERIES
};

static const u32 global_features[] = {
Expand Down
2 changes: 2 additions & 0 deletions common/features.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ bool feature_offered(const u8 *features, size_t f);
* | 0/1 | `option-data-loss-protect` |...
* | 3 | `initial_routing_sync` |...
* | 4/5 | `option_upfront_shutdown_script` |...
* | 6/7 | `gossip_queries` |...
*/
#define LOCAL_DATA_LOSS_PROTECT 0
#define LOCAL_INITIAL_ROUTING_SYNC 2
#define LOCAL_UPFRONT_SHUTDOWN_SCRIPT 4
#define LOCAL_GOSSIP_QUERIES 6

#endif /* LIGHTNING_COMMON_FEATURES_H */

0 comments on commit 0413128

Please sign in to comment.