cnct: reuse sweep tx logic for success resolver

This commit is contained in:
Joost Jager committed 2018-10-17 12:44:34 +02:00
1 parent c1d845aa0d
commit 6977d59e35
3 files changed
+98 -77

No files matched your search

+7
View File
@@ -118,6 +118,13 @@ func (s *UtxoSweeper) CreateSweepTx(inputs []Input,
)
cltvCount++
// An HTLC on the commitment transaction of the remote party,
// that can be swept with the preimage.
case lnwallet.HtlcAcceptedRemoteSuccess:
weightEstimate.AddWitnessInput(
lnwallet.OfferedHtlcSuccessWitnessSize,
)
default:
unknownCount++
log.Warnf("kindergarten output in nursery store "+