From fccd984ac18691870675b9174c7c9eb554c15ee9 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 10 Feb 2025 19:05:52 -0800 Subject: [PATCH] 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. --- peer/brontide.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peer/brontide.go b/peer/brontide.go index 24147663c..29fe0576f 100644 --- a/peer/brontide.go +++ b/peer/brontide.go @@ -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, ),