From 378bc08e16078abdfb244cd17b819c0d67530445 Mon Sep 17 00:00:00 2001 From: Carsten Otto Date: Sat, 15 May 2021 11:07:51 +0100 Subject: [PATCH] htlcswitch: add detailed "insufficient bandwidth" log message fixes #5250 --- htlcswitch/link.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htlcswitch/link.go b/htlcswitch/link.go index 8a6c5745..3c52ae27 100644 --- a/htlcswitch/link.go +++ b/htlcswitch/link.go @@ -2344,6 +2344,8 @@ func (l *channelLink) canSendHtlc(policy ForwardingPolicy, // Check to see if there is enough balance in this channel. if amt > l.Bandwidth() { + l.log.Errorf("insufficient bandwidth to route htlc: %v is "+ + "larger than %v", amt, l.Bandwidth()) failure := l.createFailureWithUpdate( func(upd *lnwire.ChannelUpdate) lnwire.FailureMessage { return lnwire.NewTemporaryChannelFailure(upd)