From 055dc233a1f0a0221b43528262c356b3aa0a8a48 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Mon, 3 Sep 2018 23:07:42 -0700 Subject: [PATCH] lnwire/features: add required gq to local features This commit adds the required feature name to our set of local known features. This will allow other peers connecting to us to set the required gossip queries feature bit. This is required for the subsequent commits, which instruct the server to set the bit depending on user configured preferences. --- lnwire/features.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lnwire/features.go b/lnwire/features.go index 5967f5ef4..7ad12d842 100644 --- a/lnwire/features.go +++ b/lnwire/features.go @@ -67,10 +67,11 @@ const ( // not advertised to the entire network. A full description of these feature // bits is provided in the BOLT-09 specification. var LocalFeatures = map[FeatureBit]string{ + DataLossProtectRequired: "data-loss-protect-required", DataLossProtectOptional: "data-loss-protect-optional", InitialRoutingSync: "initial-routing-sync", - GossipQueriesOptional: "gossip-queries-optional", GossipQueriesRequired: "gossip-queries-required", + GossipQueriesOptional: "gossip-queries-optional", } // GlobalFeatures is a mapping of known global feature bits to a descriptive