mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 22:50:58 +02:00
multi: add more logging when fetching invoices and payments.
This commit is contained in:
@@ -365,10 +365,13 @@ func (p *controlTower) SubscribeAllPayments() (ControlTowerSubscriber, error) {
|
||||
p.subscriberIndex++
|
||||
p.subscribersMtx.Unlock()
|
||||
|
||||
log.Debugf("Scanning for inflight payments")
|
||||
inflightPayments, err := p.db.FetchInFlightPayments()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
log.Debugf("Scanning for inflight payments finished",
|
||||
len(inflightPayments))
|
||||
|
||||
for index := range inflightPayments {
|
||||
// Always write current payment state to the channel.
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user