utxonursery: use proper weight estimation for second-level spends
This commit is contained in:
parent
96fbc7da84
commit
d368bce1da
@ -938,7 +938,7 @@ func (u *utxoNursery) createSweepTx(kgtnOutputs []kidOutput,
|
||||
// sweep.
|
||||
case lnwallet.HtlcOfferedTimeoutSecondLevel:
|
||||
weightEstimate.AddWitnessInput(
|
||||
lnwallet.OfferedHtlcTimeoutWitnessSize,
|
||||
lnwallet.SecondLevelHtlcSuccessWitnessSize,
|
||||
)
|
||||
csvOutputs = append(csvOutputs, input)
|
||||
|
||||
@ -947,7 +947,7 @@ func (u *utxoNursery) createSweepTx(kgtnOutputs []kidOutput,
|
||||
// sweep.
|
||||
case lnwallet.HtlcAcceptedSuccessSecondLevel:
|
||||
weightEstimate.AddWitnessInput(
|
||||
lnwallet.AcceptedHtlcSuccessWitnessSize,
|
||||
lnwallet.SecondLevelHtlcSuccessWitnessSize,
|
||||
)
|
||||
csvOutputs = append(csvOutputs, input)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user