| 412 | } |
| 413 | |
| 414 | static void payment_exclude_longest_delay(struct payment *p) |
| 415 | { |
| 416 | struct route_hop *e = &p->route[0]; |
| 417 | u32 delay, worst = 0; |
| 418 | |
| 419 | for (size_t i = 0; i < tal_count(p->route)-1; i++) { |
| 420 | delay = p->route[i].delay - p->route[i+1].delay; |
| 421 | if (delay >= worst) { |
| 422 | e = &p->route[i]; |
| 423 | worst = delay; |
| 424 | } |
| 425 | } |
| 426 | channel_hints_update(p, e->scid, e->direction, false, false, |
| 427 | NULL, NULL); |
| 428 | } |
| 429 | |
| 430 | static struct amount_msat payment_route_fee(struct payment *p) |
| 431 | { |
no test coverage detected