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

Function wait_on_invoice

lightningd/invoice.c:122–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 "Invoice deleted during wait"));
121}
122static void wait_on_invoice(const u64 *inv_dbid, void *cmd)
123{
124 if (inv_dbid)
125 tell_waiter((struct command *) cmd, *inv_dbid);
126 else
127 tell_waiter_deleted((struct command *) cmd);
128}
129static void wait_timed_out(struct command *cmd)
130{
131 was_pending(command_fail(cmd, INVOICE_WAIT_TIMED_OUT,

Callers

nothing calls this directly

Calls 2

tell_waiterFunction · 0.85
tell_waiter_deletedFunction · 0.85

Tested by

no test coverage detected