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

Function plugin_set_timeout

lightningd/plugin.c:1683–1702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1681}
1682
1683static void plugin_set_timeout(struct plugin *p)
1684{
1685 bool debug = false;
1686
1687#if DEVELOPER
1688 if (p->plugins->ld->dev_debug_subprocess
1689 && strends(p->cmd, p->plugins->ld->dev_debug_subprocess))
1690 debug = true;
1691#endif
1692
1693 /* Don't timeout if they're running a debugger. */
1694 if (debug)
1695 p->timeout_timer = NULL;
1696 else {
1697 p->timeout_timer
1698 = new_reltimer(p->plugins->ld->timers, p,
1699 time_from_sec(PLUGIN_MANIFEST_TIMEOUT),
1700 plugin_manifest_timeout, p);
1701 }
1702}
1703
1704const char *plugin_send_getmanifest(struct plugin *p, const char *cmd_id)
1705{

Callers 2

plugin_send_getmanifestFunction · 0.85
plugin_configFunction · 0.85

Calls 2

strendsFunction · 0.85
time_from_secFunction · 0.85

Tested by

no test coverage detected