From 5a5eb9db46a2356f3818c06affd58f592a7bb141 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 19 Oct 2021 17:39:57 -0700 Subject: [PATCH] lnwire: switch chan_type feature to bits 44/45 We were using an older feature bit that was just "selected". This commit has us use the feature bit officially included in the spec. See https://github.com/lightningnetwork/lightning-rfc/pull/906 --- lnwire/features.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lnwire/features.go b/lnwire/features.go index 955d01dd76..af3150f062 100644 --- a/lnwire/features.go +++ b/lnwire/features.go @@ -145,19 +145,15 @@ const ( // negotiation methods. With this bit, there is no longer a "default" // implicit channel commitment type, allowing a connection to // open/maintain types of several channels over its lifetime. - // - // TODO: Decide on actual feature bit value. - ExplicitChannelTypeRequired = 2020 + ExplicitChannelTypeRequired = 44 // ExplicitChannelTypeOptional is an optional bit that denotes that a // connection established with this node is to use explicit channel // commitment types for negotiation instead of the existing implicit // negotiation methods. With this bit, there is no longer a "default" // implicit channel commitment type, allowing a connection to - // open/maintain types of several channels over its lifetime. - // // TODO: Decide on actual feature bit value. - ExplicitChannelTypeOptional = 2021 + ExplicitChannelTypeOptional = 45 // ScriptEnforcedLeaseOptional is an optional feature bit that signals // that the node requires channels having zero-fee second-level HTLC