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

Function timeout_waitblockheight_waiter

lightningd/peer_control.c:2369–2377  ·  view source on GitHub ↗

Called on timeout. */

Source from the content-addressed store, hash-verified

2367}
2368/* Called on timeout. */
2369static void
2370timeout_waitblockheight_waiter(struct waitblockheight_waiter *w)
2371{
2372 list_del(&w->list);
2373 w->removed = true;
2374 tal_steal(tmpctx, w);
2375 was_pending(command_fail(w->cmd, WAIT_TIMEOUT,
2376 "Timed out."));
2377}
2378/* Called by lightningd at each new block. */
2379void waitblockheight_notify_new_block(struct lightningd *ld,
2380 u32 block_height)

Callers

nothing calls this directly

Calls 2

was_pendingFunction · 0.85
command_failFunction · 0.70

Tested by

no test coverage detected