@@ -1661,7 +1661,9 @@ func (a *AuxSweeper) resolveContract(
16611661 // assets for the remote party, which are actually the HTLCs we
16621662 // sent outgoing. We only care about this particular HTLC, so
16631663 // we'll filter out the rest.
1664- htlcOutputs := commitState .IncomingHtlcAssets .Val
1664+ //
1665+ // TODO(roasbeef): fix comment above?
1666+ htlcOutputs := commitState .OutgoingHtlcAssets .Val
16651667 assetOutputs = htlcOutputs .FilterByHtlcIndex (
16661668 req .HtlcID .UnwrapOr (math .MaxUint64 ),
16671669 )
@@ -1686,7 +1688,7 @@ func (a *AuxSweeper) resolveContract(
16861688 // In this case, it's an outgoing HTLC from the PoV of the
16871689 // remote party, which is incoming for us. We'll only sweep this
16881690 // HTLC, so we'll filter out the rest.
1689- htlcOutputs := commitState .OutgoingHtlcAssets .Val
1691+ htlcOutputs := commitState .IncomingHtlcAssets .Val
16901692 assetOutputs = htlcOutputs .FilterByHtlcIndex (
16911693 req .HtlcID .UnwrapOr (math .MaxUint64 ),
16921694 )
@@ -1702,7 +1704,6 @@ func (a *AuxSweeper) resolveContract(
17021704 // sweep desc for the timeout txn.
17031705 sweepDesc = remoteHtlcSuccessSweepDesc (
17041706 req .KeyRing , payHash [:], req .CsvDelay ,
1705- req .AuxSigDesc ,
17061707 )
17071708
17081709 // In this case, we broadcast a commitment transaction which held an
@@ -1726,7 +1727,7 @@ func (a *AuxSweeper) resolveContract(
17261727 // needed to sweep both this output, as well as the second level
17271728 // output it creates.
17281729 case input .TaprootHtlcAcceptedLocalSuccess :
1729- htlcOutputs := commitState .OutgoingHtlcAssets .Val
1730+ htlcOutputs := commitState .IncomingHtlcAssets .Val
17301731 assetOutputs = htlcOutputs .FilterByHtlcIndex (
17311732 req .HtlcID .UnwrapOr (math .MaxUint64 ),
17321733 )
0 commit comments