From 1b8fd008c45fba5e78bd983b447beb5df1bbf1e9 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 1 Jul 2020 21:02:25 -0700 Subject: [PATCH] lnwire: define feature bits for wumbo channels --- lnwire/features.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lnwire/features.go b/lnwire/features.go index 4e5899c2..9c871e4c 100644 --- a/lnwire/features.go +++ b/lnwire/features.go @@ -101,6 +101,14 @@ const ( // HTLC. MPPOptional FeatureBit = 17 + // WumboChannelsRequired is a required feature bit that signals that a + // node is willing to accept channels larger than 2^24 satoshis. + WumboChannelsRequired = 18 + + // WumboChannelsRequired is an optional feature bit that signals that a + // node is willing to accept channels larger than 2^24 satoshis. + WumboChannelsOptional = 19 + // AnchorsRequired is a required feature bit that signals that the node // requires channels to be made using commitments having anchor // outputs. @@ -150,6 +158,8 @@ var Features = map[FeatureBit]string{ MPPRequired: "multi-path-payments", AnchorsRequired: "anchor-commitments", AnchorsOptional: "anchor-commitments", + WumboChannelsRequired: "wumbo-channels", + WumboChannelsOptional: "wumbo-channels", } // RawFeatureVector represents a set of feature bits as defined in BOLT-09. A