From c7a09418a02059c97aaee87fc796f95745a19b7f Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 30 Jan 2024 17:58:10 -0800 Subject: [PATCH] lnwire: add feature bits for new rbf coop close --- lnwire/features.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lnwire/features.go b/lnwire/features.go index 437a50dc2..8c1c74cdb 100644 --- a/lnwire/features.go +++ b/lnwire/features.go @@ -223,6 +223,22 @@ const ( // able and willing to accept keysend payments. KeysendOptional = 55 + // RbfCoopCloseOptional is an optional feature bit that signals that + // the new RBF-based co-op close protocol is supported. + RbfCoopCloseOptional = 60 + + // RbfCoopCloseOptional is a required feature bit that signals that the + // new RBF-based co-op close protocol is supported. + RbfCoopCloseRequired = 61 + + // RbfCoopCloseOptionalStaging is an optional feature bit that signals + // that the new RBF-based co-op close protocol is supported. + RbfCoopCloseOptionalStaging = 160 + + // RbfCoopCloseOptionalStaging is a required feature bit that signals + // that the new RBF-based co-op close protocol is supported. + RbfCoopCloseRequiredStaging = 161 + // ScriptEnforcedLeaseRequired is a required feature bit that signals // that the node requires channels having zero-fee second-level HTLC // transactions, which also imply anchor commitments, along with an @@ -341,6 +357,10 @@ var Features = map[FeatureBit]string{ SimpleTaprootChannelsOptionalStaging: "simple-taproot-chans-x", Bolt11BlindedPathsOptional: "bolt-11-blinded-paths", Bolt11BlindedPathsRequired: "bolt-11-blinded-paths", + RbfCoopCloseOptional: "rbf-coop-close", + RbfCoopCloseRequired: "rbf-coop-close", + RbfCoopCloseOptionalStaging: "rbf-coop-close-x", + RbfCoopCloseRequiredStaging: "rbf-coop-close-x", } // RawFeatureVector represents a set of feature bits as defined in BOLT-09. A