From 1cea76bf01ea83058735a29e173593fa17990df4 Mon Sep 17 00:00:00 2001 From: Slyghtning Date: Mon, 15 Apr 2024 20:08:46 +0200 Subject: [PATCH] loopout: send prepay over outgoing chan set --- loopout.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/loopout.go b/loopout.go index ebff8c3..bf76274 100644 --- a/loopout.go +++ b/loopout.go @@ -599,11 +599,12 @@ func (s *loopOutSwap) payInvoices(ctx context.Context) { ) // Pay the prepay invoice. Won't use the routing plugin here as the - // prepay is trivially small and shouldn't normally need any help. + // prepay is trivially small and shouldn't normally need any help. We + // are sending it over the same channel as the loop out payment. s.log.Infof("Sending prepayment %v", s.PrepayInvoice) s.prePaymentChan = s.payInvoice( ctx, s.PrepayInvoice, s.MaxPrepayRoutingFee, - nil, RoutingPluginNone, false, + s.LoopOutContract.OutgoingChanSet, RoutingPluginNone, false, ) }