From 1dbeb34a66bcb06638fac978c16c1389dc06333a Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Wed, 18 Dec 2019 23:58:11 -0800 Subject: [PATCH] feature/default_sets: expose optional mpp and pay_addr features IN9 --- feature/default_sets.go | 10 ++++++++++ lnwire/features.go | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/feature/default_sets.go b/feature/default_sets.go index 5d285c0e..32807654 100644 --- a/feature/default_sets.go +++ b/feature/default_sets.go @@ -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 + }, } diff --git a/lnwire/features.go b/lnwire/features.go index 0feb7627..db170f6d 100644 --- a/lnwire/features.go +++ b/lnwire/features.go @@ -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