MCPcopy Create free account
hub / github.com/ElementsProject/lightning / payment_disable_chan

Function payment_disable_chan

plugins/renepay/payment.c:321–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321void payment_disable_chan(struct payment *p, struct short_channel_id_dir scidd,
322 enum log_level lvl, const char *fmt, ...)
323{
324 assert(p);
325 assert(p->disabledmap);
326 va_list ap;
327 const char *str;
328
329 va_start(ap, fmt);
330 str = tal_vfmt(tmpctx, fmt, ap);
331 va_end(ap);
332 payment_note(p, lvl, "disabling %s: %s",
333 fmt_short_channel_id_dir(tmpctx, &scidd),
334 str);
335 disabledmap_add_channel(p->disabledmap, scidd);
336}
337
338void payment_warn_chan(struct payment *p, struct short_channel_id_dir scidd,
339 enum log_level lvl, const char *fmt, ...)

Callers 4

update_gossip_failureFunction · 0.85
handle_failureFunction · 0.85
payment_warn_chanFunction · 0.85
gossmod_cbFunction · 0.85

Calls 3

payment_noteFunction · 0.85
fmt_short_channel_id_dirFunction · 0.85
disabledmap_add_channelFunction · 0.70

Tested by

no test coverage detected