Merge pull request #727 from hieblmi/send-prepay-to-selected-channel

Send loop out prepay over selected outgoing chan set
This commit is contained in:
Slyghtning 2024-04-15 20:31:24 +02:00 committed by GitHub
commit f8ff35c0f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
)
}