From 1d644f5c110cb97b481b65fd86ba26da8a31659f Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 26 May 2018 19:54:36 +0930 Subject: [PATCH] features: define LOCAL_GOSSIP_QUERIES feature. From BOLT #9 proposed update. Signed-off-by: Rusty Russell --- common/features.c | 3 ++- common/features.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/features.c b/common/features.c index 81b42eabc138..3a2c3806b1b5 100644 --- a/common/features.c +++ b/common/features.c @@ -4,7 +4,8 @@ #include static const u32 local_features[] = { - LOCAL_INITIAL_ROUTING_SYNC + LOCAL_INITIAL_ROUTING_SYNC, + LOCAL_GOSSIP_QUERIES }; static const u32 global_features[] = { diff --git a/common/features.h b/common/features.h index 82a9fbdd3d1b..2723939006fe 100644 --- a/common/features.h +++ b/common/features.h @@ -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 */