pay: Log when and why we exclude a channel from the route

This commit is contained in:
Christian Decker
2024-08-23 14:56:30 +02:00
parent 91ffa8e424
commit 30d2a57f50

View File

@@ -728,6 +728,11 @@ static bool payment_route_check(const struct gossmap *gossmap,
if (!hint)
return true;
paymod_log(p, LOG_DBG,
"Checking hint {.scid=%s, .enabled=%d, .estimate=%s}",
fmt_short_channel_id_dir(tmpctx, &hint->scid), hint->enabled,
fmt_amount_msat(tmpctx, hint->estimated_capacity));
if (!hint->enabled)
return false;