mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-26 01:33:02 +01:00
multi: extract new DeriveHeightHint() function, use for new rbf closer
With this commit, we make sure we set the right height hint, even if the channel is a zero conf channel.
This commit is contained in:
parent
971ac5a14d
commit
fccd984ac1
@ -3857,7 +3857,7 @@ func (p *Brontide) initRbfChanCloser(
|
||||
spendEvent := protofsm.RegisterSpend[chancloser.ProtocolEvent]{
|
||||
OutPoint: channel.ChannelPoint(),
|
||||
PkScript: channel.FundingTxOut().PkScript,
|
||||
HeightHint: scid.BlockHeight,
|
||||
HeightHint: channel.DeriveHeightHint(),
|
||||
PostSpendEvent: fn.Some[chancloser.RbfSpendMapper](
|
||||
chancloser.SpendMapper,
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user