@@ -132,6 +132,10 @@ func testPsbtScriptHashLockSend(t *harnessTest) {
132132 t .t , t .lndHarness .Miner .Client , bob , sendResp ,
133133 genInfo .AssetId , []uint64 {numUnits / 2 , numUnits / 2 }, 0 , 1 ,
134134 )
135+
136+ // This is an interactive/PSBT based transfer, so we do need to manually
137+ // send the proof from the sender to the receiver because the proof
138+ // courier address gets lost in the address->PSBT conversion.
135139 _ = sendProof (t , bob , alice , aliceAddr .ScriptKey , genInfo )
136140 AssertNonInteractiveRecvComplete (t .t , alice , 1 )
137141
@@ -258,6 +262,10 @@ func testPsbtScriptCheckSigSend(t *harnessTest) {
258262 t .t , t .lndHarness .Miner .Client , bob , sendResp ,
259263 genInfo .AssetId , []uint64 {numUnits / 2 , numUnits / 2 }, 0 , 1 ,
260264 )
265+
266+ // This is an interactive/PSBT based transfer, so we do need to manually
267+ // send the proof from the sender to the receiver because the proof
268+ // courier address gets lost in the address->PSBT conversion.
261269 _ = sendProof (t , bob , alice , aliceAddr .ScriptKey , genInfo )
262270 AssertNonInteractiveRecvComplete (t .t , alice , 1 )
263271
@@ -438,6 +446,9 @@ func runPsbtInteractiveFullValueSendTest(ctxt context.Context, t *harnessTest,
438446 sendResp , genInfo .AssetId , amounts , i / 2 , (i / 2 )+ 1 ,
439447 numOutputs ,
440448 )
449+
450+ // This is an interactive transfer, so we do need to manually
451+ // send the proof from the sender to the receiver.
441452 _ = sendProof (
442453 t , sender , receiver ,
443454 receiverScriptKey .PubKey .SerializeCompressed (), genInfo ,
@@ -656,6 +667,9 @@ func runPsbtInteractiveSplitSendTest(ctxt context.Context, t *harnessTest,
656667 []uint64 {sendAmt , changeAmt }, i / 2 , (i / 2 )+ 1 ,
657668 numOutputs ,
658669 )
670+
671+ // This is an interactive transfer, so we do need to manually
672+ // send the proof from the sender to the receiver.
659673 _ = sendProof (
660674 t , sender , receiver ,
661675 receiverScriptKey .PubKey .SerializeCompressed (), genInfo ,
@@ -779,6 +793,9 @@ func testPsbtInteractiveTapscriptSibling(t *harnessTest) {
779793 t .t , t .lndHarness .Miner .Client , alice , sendResp ,
780794 genInfo .AssetId , []uint64 {sendAmt , changeAmt }, 0 , 1 , 2 ,
781795 )
796+
797+ // This is an interactive transfer, so we do need to manually send the
798+ // proof from the sender to the receiver.
782799 _ = sendProof (
783800 t , alice , bob ,
784801 receiverScriptKey .PubKey .SerializeCompressed (), genInfo ,
@@ -927,6 +944,9 @@ func testPsbtMultiSend(t *harnessTest) {
927944 t .t , t .lndHarness .Miner .Client , sender , sendResp ,
928945 genInfo .AssetId , outputAmounts , 0 , 1 , numOutputs ,
929946 )
947+
948+ // This is an interactive transfer, so we do need to manually send the
949+ // proof from the sender to the receiver.
930950 _ = sendProof (
931951 t , sender , receiver ,
932952 receiverScriptKey1 .PubKey .SerializeCompressed (), genInfo ,
@@ -1034,7 +1054,6 @@ func sendToTapscriptAddr(ctx context.Context, t *harnessTest, alice,
10341054 t .t , t .lndHarness .Miner .Client , alice , sendResp ,
10351055 genInfo .AssetId , []uint64 {changeUnits , numUnits }, 0 , 1 ,
10361056 )
1037- _ = sendProof (t , alice , bob , bobAddr .ScriptKey , genInfo )
10381057 AssertNonInteractiveRecvComplete (t .t , bob , 1 )
10391058}
10401059
@@ -1059,7 +1078,6 @@ func sendAssetAndAssert(ctx context.Context, t *harnessTest, alice,
10591078 genInfo .AssetId , []uint64 {change , numUnits }, outTransferIdx ,
10601079 numOutTransfers ,
10611080 )
1062- _ = sendProof (t , alice , bob , bobAddr .ScriptKey , genInfo )
10631081
10641082 // There are now two receive events (since only non-interactive sends
10651083 // appear in that RPC output).
0 commit comments