Merge pull request #9858 from Roasbeef/non-staging-rbf-coop
peer+feature: start to signal the prod rbf coop close bit
This commit is contained in:
3 files changed
+12
-5
No files matched your search
+7
-5
@@ -975,11 +975,13 @@ func (p *Brontide) taprootShutdownAllowed() bool {
|
||||
// rbfCoopCloseAllowed returns true if both parties have negotiated the new RBF
|
||||
// coop close feature.
|
||||
func (p *Brontide) rbfCoopCloseAllowed() bool {
|
||||
return p.RemoteFeatures().HasFeature(
|
||||
lnwire.RbfCoopCloseOptionalStaging,
|
||||
) && p.LocalFeatures().HasFeature(
|
||||
lnwire.RbfCoopCloseOptionalStaging,
|
||||
)
|
||||
bothHaveBit := func(bit lnwire.FeatureBit) bool {
|
||||
return p.RemoteFeatures().HasFeature(bit) &&
|
||||
p.LocalFeatures().HasFeature(bit)
|
||||
}
|
||||
|
||||
return bothHaveBit(lnwire.RbfCoopCloseOptional) ||
|
||||
bothHaveBit(lnwire.RbfCoopCloseOptionalStaging)
|
||||
}
|
||||
|
||||
// QuitSignal is a method that should return a channel which will be sent upon
|
||||
|
||||
Reference in new issue
Block a user