Skip to content

Commit 9643542

Browse files
committed
Merge branch 'v0-16-3-branch-7726' into v0-16-3-branch
2 parents 9b4fce1 + 96a24e0 commit 9643542

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

contractcourt/htlc_timeout_resolver.go

+1
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ func (h *htlcTimeoutResolver) sweepSecondLevelTx() error {
327327
Fee: sweep.FeePreference{
328328
ConfTarget: secondLevelConfTarget,
329329
},
330+
Force: true,
330331
},
331332
)
332333

contractcourt/utxonursery.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -781,9 +781,10 @@ func (u *UtxoNursery) sweepMatureOutputs(classHeight uint32,
781781
// passed in with disastrous consequences.
782782
local := output
783783

784-
resultChan, err := u.cfg.SweepInput(
785-
&local, sweep.Params{Fee: feePref},
786-
)
784+
resultChan, err := u.cfg.SweepInput(&local, sweep.Params{
785+
Fee: feePref,
786+
Force: true,
787+
})
787788
if err != nil {
788789
return err
789790
}

docs/release-notes/release-notes-0.16.3.md

+8
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@
2020
peer, then this'll force a reconnect, which may restart things and help avoid
2121
certain force close scenarios.
2222

23+
24+
## Consistent Contract Resolution
25+
26+
* If lnd decides to go to chain for an HTLC, it will now _always_ ensure the
27+
HTLC is fully swept on the outgoing link. Prior logic would avoid sweeping
28+
due to negative yield, but combined with other inputs, the HTLC will usually
29+
be positive yield.
30+
2331
# Contributors (Alphabetical Order)
2432

2533
* Elle Mouton

0 commit comments

Comments
 (0)