From a9e538e52d208c20c04fbe3b091d83e5a89f74a8 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 5 Mar 2024 00:18:17 -0600 Subject: [PATCH] feature: add new NoRbfCoopClose option --- feature/manager.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/feature/manager.go b/feature/manager.go index 953883216..ad26ac8ab 100644 --- a/feature/manager.go +++ b/feature/manager.go @@ -73,6 +73,10 @@ type Config struct { // forwarding experimental endorsement. NoExperimentalEndorsement bool + // NoRbfCoopClose unsets any bits that signal support for using RBF for + // coop close. + NoRbfCoopClose bool + // CustomFeatures is a set of custom features to advertise in each // set. CustomFeatures map[Set][]lnwire.FeatureBit @@ -209,11 +213,13 @@ func newManager(cfg Config, desc setDesc) (*Manager, error) { raw.Unset(lnwire.SimpleTaprootOverlayChansOptional) raw.Unset(lnwire.SimpleTaprootOverlayChansRequired) } - if cfg.NoExperimentalEndorsement { raw.Unset(lnwire.ExperimentalEndorsementOptional) raw.Unset(lnwire.ExperimentalEndorsementRequired) } + if cfg.NoRbfCoopClose { + raw.Unset(lnwire.RbfCoopCloseOptionalStaging) + } for _, custom := range cfg.CustomFeatures[set] { if custom > set.Maximum() {