mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-12 18:52:14 +01:00
Merge branch 'v0-16-3-branch-7726' into v0-16-3-branch
This commit is contained in:
commit
96435425e9
3 changed files with 13 additions and 3 deletions
|
@ -327,6 +327,7 @@ func (h *htlcTimeoutResolver) sweepSecondLevelTx() error {
|
||||||
Fee: sweep.FeePreference{
|
Fee: sweep.FeePreference{
|
||||||
ConfTarget: secondLevelConfTarget,
|
ConfTarget: secondLevelConfTarget,
|
||||||
},
|
},
|
||||||
|
Force: true,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -781,9 +781,10 @@ func (u *UtxoNursery) sweepMatureOutputs(classHeight uint32,
|
||||||
// passed in with disastrous consequences.
|
// passed in with disastrous consequences.
|
||||||
local := output
|
local := output
|
||||||
|
|
||||||
resultChan, err := u.cfg.SweepInput(
|
resultChan, err := u.cfg.SweepInput(&local, sweep.Params{
|
||||||
&local, sweep.Params{Fee: feePref},
|
Fee: feePref,
|
||||||
)
|
Force: true,
|
||||||
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,14 @@
|
||||||
peer, then this'll force a reconnect, which may restart things and help avoid
|
peer, then this'll force a reconnect, which may restart things and help avoid
|
||||||
certain force close scenarios.
|
certain force close scenarios.
|
||||||
|
|
||||||
|
|
||||||
|
## Consistent Contract Resolution
|
||||||
|
|
||||||
|
* If lnd decides to go to chain for an HTLC, it will now _always_ ensure the
|
||||||
|
HTLC is fully swept on the outgoing link. Prior logic would avoid sweeping
|
||||||
|
due to negative yield, but combined with other inputs, the HTLC will usually
|
||||||
|
be positive yield.
|
||||||
|
|
||||||
# Contributors (Alphabetical Order)
|
# Contributors (Alphabetical Order)
|
||||||
|
|
||||||
* Elle Mouton
|
* Elle Mouton
|
||||||
|
|
Loading…
Add table
Reference in a new issue