feature/default_sets: expose optional mpp and pay_addr features IN9

This commit is contained in:
Conner Fromknecht 2019-12-18 23:58:11 -08:00
parent 35dd5f354d
commit 1dbeb34a66
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7
2 changed files with 14 additions and 0 deletions

@ -33,4 +33,14 @@ var defaultSetDesc = setDesc{
SetInit: {}, // I
SetNodeAnn: {}, // N
},
lnwire.PaymentAddrOptional: {
SetInit: {}, // I
SetNodeAnn: {}, // N
SetInvoice: {}, // 9
},
lnwire.MPPOptional: {
SetInit: {}, // I
SetNodeAnn: {}, // N
SetInvoice: {}, // 9
},
}

@ -134,6 +134,10 @@ var Features = map[FeatureBit]string{
TLVOnionPayloadOptional: "tlv-onion",
StaticRemoteKeyOptional: "static-remote-key",
StaticRemoteKeyRequired: "static-remote-key",
PaymentAddrOptional: "payment-addr",
PaymentAddrRequired: "payment-addr",
MPPOptional: "multi-path-payments",
MPPRequired: "multi-path-payments",
}
// RawFeatureVector represents a set of feature bits as defined in BOLT-09. A