MCPcopy Create free account
hub / github.com/ElementsProject/lightning / waitblockheight_done

Function waitblockheight_done

plugins/xpay/xpay.c:1835–1849  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1833}
1834
1835static 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
1851static struct command_result *waitblockheight_failed(struct command *aux_cmd,
1852 const char *method,

Callers

nothing calls this directly

Calls 4

amount_msat_subFunction · 0.85
payment_current_amountFunction · 0.85
abortFunction · 0.85
getroutes_forFunction · 0.85

Tested by

no test coverage detected