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

Function prepare_inv_timeout

plugins/fetchinvoice.c:806–815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

804}
805
806static struct command_result *prepare_inv_timeout(struct command *cmd,
807 const char *buf UNUSED,
808 const jsmntok_t *result UNUSED,
809 struct sent *sent)
810{
811 tal_steal(cmd, plugin_timer(cmd->plugin,
812 time_from_sec(sent->wait_timeout),
813 timeout_sent_inv, sent));
814 return sendonionmsg_done(cmd, buf, result, sent);
815}
816
817/* We've connected (if we tried), so send the invreq. */
818static struct command_result *

Callers

nothing calls this directly

Calls 3

time_from_secFunction · 0.85
sendonionmsg_doneFunction · 0.85
plugin_timerClass · 0.70

Tested by

no test coverage detected