| 388 | } |
| 389 | |
| 390 | static struct amount_msat attempt_deliver(const struct attempt *attempt) |
| 391 | { |
| 392 | const size_t len = tal_count(attempt->hops); |
| 393 | if (len == 0) |
| 394 | return attempt->amount; |
| 395 | return attempt->hops[len - 1].amount_out; |
| 396 | } |
| 397 | |
| 398 | static struct amount_msat attempt_mpp_amount(const struct attempt *attempt) |
| 399 | { |
no outgoing calls
no test coverage detected