For self-pay, we don't have hops. */
| 374 | |
| 375 | /* For self-pay, we don't have hops. */ |
| 376 | static struct amount_msat initial_sent(const struct attempt *attempt) |
| 377 | { |
| 378 | if (tal_count(attempt->hops) == 0) |
| 379 | return attempt->amount; |
| 380 | return attempt->hops[0].amount_out; |
| 381 | } |
| 382 | |
| 383 | static struct amount_msat inject_amount(const struct attempt *attempt) |
| 384 | { |