mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-29 06:42:56 +02:00
feature+lncfg: add config option to turn of anysegwit
This commit is contained in:
@@ -40,6 +40,10 @@ type Config struct {
|
||||
// channels. This should be used instead of NoOptionScidAlias to still
|
||||
// keep option-scid-alias support.
|
||||
NoZeroConf bool
|
||||
|
||||
// NoAnySegwit unsets any bits that signal support for using other
|
||||
// segwit witness versions for co-op closes.
|
||||
NoAnySegwit bool
|
||||
}
|
||||
|
||||
// Manager is responsible for generating feature vectors for different requested
|
||||
@@ -142,6 +146,10 @@ func newManager(cfg Config, desc setDesc) (*Manager, error) {
|
||||
raw.Unset(lnwire.ZeroConfOptional)
|
||||
raw.Unset(lnwire.ZeroConfRequired)
|
||||
}
|
||||
if cfg.NoAnySegwit {
|
||||
raw.Unset(lnwire.ShutdownAnySegwitOptional)
|
||||
raw.Unset(lnwire.ShutdownAnySegwitRequired)
|
||||
}
|
||||
|
||||
// Ensure that all of our feature sets properly set any
|
||||
// dependent features.
|
||||
|
Reference in New Issue
Block a user