multi: add more logging when fetching invoices and payments.

This commit is contained in:
ziggie
2025-04-18 15:27:00 +02:00
parent 729c84bee3
commit 440ed31419
7 changed files with 134 additions and 6 deletions

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