peer: add initial awareness of new rbf coop closer
In this commit, we use the interfaces we created in the prior commit to make a new method capable of spinning up the new rbf coop closer.
This commit is contained in:
1 parent
047d3532f9
commit
23a9a761e3
2 files changed
+170
-1
No files matched your search
@@ -9935,3 +9935,16 @@ func (lc *LightningChannel) FundingBlob() fn.Option[tlv.Blob] {
|
||||
return newBlob
|
||||
})(lc.channelState.CustomBlob)
|
||||
}
|
||||
|
||||
// ZeroConfRealScid returns an optional real scid for the channel. If this
|
||||
// returns None, then this isn't a zero conf channel. Otherwise, the real scid
|
||||
// value will be returned.
|
||||
//
|
||||
//nolint:ll
|
||||
func (lc *LightningChannel) ZeroConfRealScid() fn.Option[lnwire.ShortChannelID] {
|
||||
if lc.channelState.IsZeroConf() {
|
||||
return fn.Some(lc.channelState.ZeroConfRealScid())
|
||||
}
|
||||
|
||||
return fn.None[lnwire.ShortChannelID]()
|
||||
}
|
||||
Reference in new issue
Block a user