multi: add more logging when fetching invoices and payments.

This commit is contained in:
ziggie committed 2025-04-18 16:33:39 +02:00
1 parent 729c84bee3
commit 440ed31419
7 files changed
+134 -6

No files matched your search

+4
View File
@@ -1400,11 +1400,15 @@ func (r *ChannelRouter) BuildRoute(amt fn.Option[lnwire.MilliSatoshi],
// lifecycles.
func (r *ChannelRouter) resumePayments() error {
// Get all payments that are inflight.
log.Debugf("Scanning for inflight payments")
payments, err := r.cfg.Control.FetchInFlightPayments()
if err != nil {
return err
}
log.Debugf("Scanning finished, found %d inflight payments",
len(payments))
// Before we restart existing payments and start accepting more
// payments to be made, we clean the network result store of the
// Switch. We do this here at startup to ensure no more payments can be