| 1833 | } |
| 1834 | |
| 1835 | static struct command_result *waitblockheight_done(struct command *aux_cmd, |
| 1836 | const char *method, |
| 1837 | const char *buf, |
| 1838 | const jsmntok_t *result, |
| 1839 | struct payment *payment) |
| 1840 | { |
| 1841 | /* Kick off however much is outstanding */ |
| 1842 | struct amount_msat needs_routing; |
| 1843 | |
| 1844 | if (!amount_msat_sub(&needs_routing, |
| 1845 | payment->amount, |
| 1846 | payment_current_amount(payment))) |
| 1847 | abort(); |
| 1848 | return getroutes_for(aux_cmd, payment, needs_routing); |
| 1849 | } |
| 1850 | |
| 1851 | static struct command_result *waitblockheight_failed(struct command *aux_cmd, |
| 1852 | const char *method, |
nothing calls this directly
no test coverage detected