Skip to content

Commit

Permalink
x - remove expiry--
Browse files Browse the repository at this point in the history
  • Loading branch information
yyforyongyu committed Nov 22, 2024
1 parent 9e55a37 commit 9e75f00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contractcourt/htlc_outgoing_contest_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 "+
Expand Down

0 comments on commit 9e75f00

Please sign in to comment.