From c5065fcdbac2eec653dfb1d3d785195ca61d29cb Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 16 Apr 2018 18:44:51 -0700 Subject: [PATCH] lnwire: add new gossip query required+optional feature bits --- lnwire/features.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lnwire/features.go b/lnwire/features.go index a5968944f..ee663f909 100644 --- a/lnwire/features.go +++ b/lnwire/features.go @@ -35,6 +35,17 @@ const ( // connection is established. InitialRoutingSync FeatureBit = 3 + // GossipQueriesRequired is a feature bit that indicates that the + // receiving peer MUST know of the set of features that allows nodes to + // more efficiently query the network view of peers on the network for + // reconciliation purposes. + GossipQueriesRequired FeatureBit = 6 + + // GossipQueriesOptional is an optional feature bit that signals that + // the setting peer knows of the set of features that allows more + // efficient network view reconciliation. + GossipQueriesOptional FeatureBit = 7 + // maxAllowedSize is a maximum allowed size of feature vector. // // NOTE: Within the protocol, the maximum allowed message size is 65535 @@ -57,6 +68,8 @@ const ( // bits is provided in the BOLT-09 specification. var LocalFeatures = map[FeatureBit]string{ DataLossProtectOptional: "data-loss-protect-optional", + InitialRoutingSync: "initial-routing-sync", + GossipQueriesOptional: "gossip-queries-optional", } // GlobalFeatures is a mapping of known global feature bits to a descriptive