Skip to content

Commit

Permalink
pay: Log when and why we exclude a channel from the route
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Aug 23, 2024
1 parent b2e1e2c commit 268d11f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/libplugin-pay.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,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;

Expand Down

0 comments on commit 268d11f

Please sign in to comment.