Skip to content

Commit 1cea76b

Browse files
committed
loopout: send prepay over outgoing chan set
1 parent 54a6f15 commit 1cea76b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

loopout.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,11 +599,12 @@ func (s *loopOutSwap) payInvoices(ctx context.Context) {
599599
)
600600

601601
// Pay the prepay invoice. Won't use the routing plugin here as the
602-
// prepay is trivially small and shouldn't normally need any help.
602+
// prepay is trivially small and shouldn't normally need any help. We
603+
// are sending it over the same channel as the loop out payment.
603604
s.log.Infof("Sending prepayment %v", s.PrepayInvoice)
604605
s.prePaymentChan = s.payInvoice(
605606
ctx, s.PrepayInvoice, s.MaxPrepayRoutingFee,
606-
nil, RoutingPluginNone, false,
607+
s.LoopOutContract.OutgoingChanSet, RoutingPluginNone, false,
607608
)
608609
}
609610

0 commit comments

Comments
 (0)