diff --git a/server.go b/server.go index 5d21e3e7e..c771ffc5c 100644 --- a/server.go +++ b/server.go @@ -612,6 +612,17 @@ func newServer(cfg *Config, listenAddrs []net.Addr, "aux controllers") } + // For now, the RBF coop close flag and the taproot channel type cannot + // be used together. + // + // TODO(roasbeef): fix + if cfg.ProtocolOptions.RbfCoopClose && + cfg.ProtocolOptions.TaprootChans { + + return nil, fmt.Errorf("RBF coop close and taproot " + + "channels cannot be used together") + } + //nolint:ll featureMgr, err := feature.NewManager(feature.Config{ NoTLVOnion: cfg.ProtocolOptions.LegacyOnion(), @@ -629,6 +640,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr, NoRouteBlinding: cfg.ProtocolOptions.NoRouteBlinding(), NoExperimentalEndorsement: cfg.ProtocolOptions.NoExperimentalEndorsement(), NoQuiescence: cfg.ProtocolOptions.NoQuiescence(), + NoRbfCoopClose: !cfg.ProtocolOptions.RbfCoopClose, }) if err != nil { return nil, err