| 386 | } |
| 387 | |
| 388 | static struct amount_msat inject_amount(const struct attempt *attempt) |
| 389 | { |
| 390 | if (tal_count(attempt->hops) == 0) |
| 391 | return attempt->amount; |
| 392 | return attempt->hops[0].amount_in; |
| 393 | } |
| 394 | |
| 395 | static struct amount_msat attempt_deliver(const struct attempt *attempt) |
| 396 | { |