| 360 | } |
| 361 | |
| 362 | void 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 | } |
no test coverage detected