From 9e75f00988c6ce59ed35e956ecf916ac4ec471df Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Fri, 22 Nov 2024 14:57:38 +0800 Subject: [PATCH] x - remove expiry-- --- contractcourt/htlc_outgoing_contest_resolver.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contractcourt/htlc_outgoing_contest_resolver.go b/contractcourt/htlc_outgoing_contest_resolver.go index 41f9f34988..9a060dc040 100644 --- a/contractcourt/htlc_outgoing_contest_resolver.go +++ b/contractcourt/htlc_outgoing_contest_resolver.go @@ -156,9 +156,10 @@ func (h *htlcOutgoingContestResolver) Resolve() (ContractResolver, error) { newHeight := uint32(newBlock.Height) expiry := h.htlcResolution.Expiry if h.isZeroFeeOutput() { - expiry-- } + h.log.Debugf("-----------> height=%v, expiry=%v", newHeight, expiry) + if newHeight >= expiry { h.log.Infof("HTLC about to expire "+ "(height=%v, expiry=%v), transforming "+