feature+lncfg: add new CLI flag to opt into taproot chans

This commit is contained in:
Olaoluwa Osuntokun
2023-07-25 17:44:59 -07:00
parent 6dc43ad253
commit 7323e9373b
5 changed files with 20 additions and 0 deletions

View File

@@ -35,6 +35,10 @@ type Config struct {
// NoWumbo unsets any bits signalling support for wumbo channels.
NoWumbo bool
// NoTaprootChans unsets any bits signaling support for taproot
// channels.
NoTaprootChans bool
// NoScriptEnforcementLease unsets any bits signaling support for script
// enforced leases.
NoScriptEnforcementLease bool
@@ -171,6 +175,10 @@ func newManager(cfg Config, desc setDesc) (*Manager, error) {
raw.Unset(lnwire.ShutdownAnySegwitOptional)
raw.Unset(lnwire.ShutdownAnySegwitRequired)
}
if cfg.NoTaprootChans {
raw.Unset(lnwire.SimpleTaprootChannelsOptional)
raw.Unset(lnwire.SimpleTaprootChannelsRequired)
}
for _, custom := range cfg.CustomFeatures[set] {
if custom > set.Maximum() {