lnwire: add new gossip query required+optional feature bits

This commit is contained in:
Olaoluwa Osuntokun 2018-04-16 18:44:51 -07:00
parent 0fcd9ce7c8
commit c5065fcdba
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -35,6 +35,17 @@ const (
// connection is established. // connection is established.
InitialRoutingSync FeatureBit = 3 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. // maxAllowedSize is a maximum allowed size of feature vector.
// //
// NOTE: Within the protocol, the maximum allowed message size is 65535 // NOTE: Within the protocol, the maximum allowed message size is 65535
@ -57,6 +68,8 @@ const (
// 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{
DataLossProtectOptional: "data-loss-protect-optional", 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 // GlobalFeatures is a mapping of known global feature bits to a descriptive