mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 06:07:16 +01:00
feature+lncfg: add new CLI flag to opt into taproot chans
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user