Skip to content

Commit 4a29773

Browse files
cdeckerrustyrussell
authored andcommitted
pay: Log when and why we exclude a channel from the route
1 parent b13fc85 commit 4a29773

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugins/libplugin-pay.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,11 @@ static bool payment_route_check(const struct gossmap *gossmap,
729729
if (!hint)
730730
return true;
731731

732+
paymod_log(p, LOG_DBG,
733+
"Checking hint {.scid=%s, .enabled=%d, .estimate=%s}",
734+
fmt_short_channel_id_dir(tmpctx, &hint->scid), hint->enabled,
735+
fmt_amount_msat(tmpctx, hint->estimated_capacity));
736+
732737
if (!hint->enabled)
733738
return false;
734739

0 commit comments

Comments
 (0)