lnwire: add new TLV onion feature bits
This commit is contained in:
parent
23cc8389f2
commit
9145c0fd38
@ -46,6 +46,15 @@ const (
|
|||||||
// efficient network view reconciliation.
|
// efficient network view reconciliation.
|
||||||
GossipQueriesOptional FeatureBit = 7
|
GossipQueriesOptional FeatureBit = 7
|
||||||
|
|
||||||
|
// TLVOnionPayloadRequired is a feature bit that indicates a node is
|
||||||
|
// able to decode the new TLV information included in the onion packet.
|
||||||
|
TLVOnionPayloadRequired FeatureBit = 8
|
||||||
|
|
||||||
|
// TLVOnionPayloadRequired is an optional feature bit that indicates a
|
||||||
|
// node is able to decode the new TLV information included in the onion
|
||||||
|
// packet.
|
||||||
|
TLVOnionPayloadOptional FeatureBit = 9
|
||||||
|
|
||||||
// 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
|
||||||
@ -76,7 +85,10 @@ var LocalFeatures = map[FeatureBit]string{
|
|||||||
// name. All known global feature bits must be assigned a name in this mapping.
|
// name. All known global feature bits must be assigned a name in this mapping.
|
||||||
// Global features are those which are advertised to the entire network. A full
|
// Global features are those which are advertised to the entire network. A full
|
||||||
// description of these feature bits is provided in the BOLT-09 specification.
|
// description of these feature bits is provided in the BOLT-09 specification.
|
||||||
var GlobalFeatures map[FeatureBit]string
|
var GlobalFeatures = map[FeatureBit]string{
|
||||||
|
TLVOnionPayloadRequired: "tlv-onion",
|
||||||
|
TLVOnionPayloadOptional: "tlv-onion",
|
||||||
|
}
|
||||||
|
|
||||||
// RawFeatureVector represents a set of feature bits as defined in BOLT-09. A
|
// RawFeatureVector represents a set of feature bits as defined in BOLT-09. A
|
||||||
// RawFeatureVector itself just stores a set of bit flags but can be used to
|
// RawFeatureVector itself just stores a set of bit flags but can be used to
|
||||||
|
Loading…
Reference in New Issue
Block a user