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

Function payment_disable_node

plugins/renepay/payment.c:362–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362void payment_disable_node(struct payment *p, struct node_id node,
363 enum log_level lvl, const char *fmt, ...)
364{
365 assert(p);
366 assert(p->disabledmap);
367 va_list ap;
368 const char *str;
369
370 va_start(ap, fmt);
371 str = tal_vfmt(tmpctx, fmt, ap);
372 va_end(ap);
373 payment_note(p, lvl, "disabling node %s: %s",
374 fmt_node_id(tmpctx, &node),
375 str);
376 disabledmap_add_node(p->disabledmap, node);
377}

Callers 1

handle_failureFunction · 0.85

Calls 3

payment_noteFunction · 0.85
fmt_node_idFunction · 0.85
disabledmap_add_nodeFunction · 0.70

Tested by

no test coverage detected