@@ -834,7 +834,7 @@ func localHtlcTimeoutSweepDesc(req lnwallet.ResolutionReq,
834834 // We'll need to complete the control block to spend the second-level
835835 // HTLC, so first we'll make the script tree for the HTLC.
836836 htlcScriptTree , err := lnwallet .GenTaprootHtlcScript (
837- isIncoming , lntypes .Remote , htlcExpiry ,
837+ isIncoming , lntypes .Local , htlcExpiry ,
838838 payHash , req .KeyRing , lfn .None [txscript.TapLeaf ](),
839839 )
840840 if err != nil {
@@ -843,9 +843,8 @@ func localHtlcTimeoutSweepDesc(req lnwallet.ResolutionReq,
843843 }
844844
845845 // Now that we have the script tree, we'll make the control block needed
846- // to spend it, but taking the revoked path.
847846 ctrlBlock , err := htlcScriptTree .CtrlBlockForPath (
848- input .ScriptPathSuccess ,
847+ input .ScriptPathTimeout ,
849848 )
850849 if err != nil {
851850 return lfn.Err [tapscriptSweepDescs ](err )
@@ -936,7 +935,7 @@ func localHtlcSucessSweepDesc(req lnwallet.ResolutionReq,
936935 }
937936
938937 // Now that we have the script tree, we'll make the control block needed
939- // to spend it, but taking the revoked path.
938+ // to spend it, but taking the success path.
940939 ctrlBlock , err := htlcScriptTree .CtrlBlockForPath (
941940 input .ScriptPathSuccess ,
942941 )
0 commit comments