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.
This commit is contained in:
parent
aec1e84e3e
commit
055dc233a1
@ -67,10 +67,11 @@ const (
|
|||||||
// not advertised to the entire network. A full description of these feature
|
// not advertised to the entire network. A full description of these feature
|
||||||
// bits is provided in the BOLT-09 specification.
|
// bits is provided in the BOLT-09 specification.
|
||||||
var LocalFeatures = map[FeatureBit]string{
|
var LocalFeatures = map[FeatureBit]string{
|
||||||
|
DataLossProtectRequired: "data-loss-protect-required",
|
||||||
DataLossProtectOptional: "data-loss-protect-optional",
|
DataLossProtectOptional: "data-loss-protect-optional",
|
||||||
InitialRoutingSync: "initial-routing-sync",
|
InitialRoutingSync: "initial-routing-sync",
|
||||||
GossipQueriesOptional: "gossip-queries-optional",
|
|
||||||
GossipQueriesRequired: "gossip-queries-required",
|
GossipQueriesRequired: "gossip-queries-required",
|
||||||
|
GossipQueriesOptional: "gossip-queries-optional",
|
||||||
}
|
}
|
||||||
|
|
||||||
// GlobalFeatures is a mapping of known global feature bits to a descriptive
|
// GlobalFeatures is a mapping of known global feature bits to a descriptive
|
||||||
|
Loading…
Reference in New Issue
Block a user