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