Skip to content

Commit

Permalink
Merge pull request #727 from hieblmi/send-prepay-to-selected-channel
Browse files Browse the repository at this point in the history
Send loop out prepay over selected outgoing chan set
  • Loading branch information
hieblmi authored Apr 15, 2024
2 parents 54a6f15 + 1cea76b commit f8ff35c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions loopout.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
}

Expand Down

0 comments on commit f8ff35c

Please sign in to comment.