mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 15:11:09 +02:00
Merge branch '0-19-1-rc1-branch-9858' into 0-19-1-rc1-branch
This commit is contained in:
@@ -107,4 +107,8 @@ var defaultSetDesc = setDesc{
|
|||||||
SetInit: {}, // I
|
SetInit: {}, // I
|
||||||
SetNodeAnn: {}, // N
|
SetNodeAnn: {}, // N
|
||||||
},
|
},
|
||||||
|
lnwire.RbfCoopCloseOptional: {
|
||||||
|
SetInit: {}, // I
|
||||||
|
SetNodeAnn: {}, // N
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
@@ -219,6 +219,7 @@ func newManager(cfg Config, desc setDesc) (*Manager, error) {
|
|||||||
}
|
}
|
||||||
if cfg.NoRbfCoopClose {
|
if cfg.NoRbfCoopClose {
|
||||||
raw.Unset(lnwire.RbfCoopCloseOptionalStaging)
|
raw.Unset(lnwire.RbfCoopCloseOptionalStaging)
|
||||||
|
raw.Unset(lnwire.RbfCoopCloseOptional)
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, custom := range cfg.CustomFeatures[set] {
|
for _, custom := range cfg.CustomFeatures[set] {
|
||||||
|
@@ -975,11 +975,13 @@ func (p *Brontide) taprootShutdownAllowed() bool {
|
|||||||
// rbfCoopCloseAllowed returns true if both parties have negotiated the new RBF
|
// rbfCoopCloseAllowed returns true if both parties have negotiated the new RBF
|
||||||
// coop close feature.
|
// coop close feature.
|
||||||
func (p *Brontide) rbfCoopCloseAllowed() bool {
|
func (p *Brontide) rbfCoopCloseAllowed() bool {
|
||||||
return p.RemoteFeatures().HasFeature(
|
bothHaveBit := func(bit lnwire.FeatureBit) bool {
|
||||||
lnwire.RbfCoopCloseOptionalStaging,
|
return p.RemoteFeatures().HasFeature(bit) &&
|
||||||
) && p.LocalFeatures().HasFeature(
|
p.LocalFeatures().HasFeature(bit)
|
||||||
lnwire.RbfCoopCloseOptionalStaging,
|
}
|
||||||
)
|
|
||||||
|
return bothHaveBit(lnwire.RbfCoopCloseOptional) ||
|
||||||
|
bothHaveBit(lnwire.RbfCoopCloseOptionalStaging)
|
||||||
}
|
}
|
||||||
|
|
||||||
// QuitSignal is a method that should return a channel which will be sent upon
|
// QuitSignal is a method that should return a channel which will be sent upon
|
||||||
|
Reference in New Issue
Block a user