htlcswitch+peer: allow the disabling of quiescence
Here we add a flag where we can disable quiescence. This will be used in the case where the feature is not negotiated with our peer.
This commit is contained in:
7 files changed
+49
-9
No files matched your search
@@ -63,6 +63,9 @@ type Config struct {
|
||||
// NoRouteBlinding unsets route blinding feature bits.
|
||||
NoRouteBlinding bool
|
||||
|
||||
// NoQuiescence unsets quiescence feature bits.
|
||||
NoQuiescence bool
|
||||
|
||||
// NoTaprootOverlay unsets the taproot overlay channel feature bits.
|
||||
NoTaprootOverlay bool
|
||||
|
||||
@@ -199,6 +202,9 @@ func newManager(cfg Config, desc setDesc) (*Manager, error) {
|
||||
raw.Unset(lnwire.Bolt11BlindedPathsOptional)
|
||||
raw.Unset(lnwire.Bolt11BlindedPathsRequired)
|
||||
}
|
||||
if cfg.NoQuiescence {
|
||||
raw.Unset(lnwire.QuiescenceOptional)
|
||||
}
|
||||
if cfg.NoTaprootOverlay {
|
||||
raw.Unset(lnwire.SimpleTaprootOverlayChansOptional)
|
||||
raw.Unset(lnwire.SimpleTaprootOverlayChansRequired)
|
||||
|
||||
Reference in new issue
Block a user