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

Function state_desc

lightningd/plugin.c:55–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53#endif /* DEVELOPER */
54
55static const char *state_desc(const struct plugin *plugin)
56{
57 switch (plugin->plugin_state) {
58 case UNCONFIGURED:
59 return "unconfigured";
60 case AWAITING_GETMANIFEST_RESPONSE:
61 return "before replying to getmanifest";
62 case NEEDS_INIT:
63 return "before we sent init";
64 case AWAITING_INIT_RESPONSE:
65 return "before replying to init";
66 case INIT_COMPLETE:
67 return "during normal operation";
68 }
69 fatal("Invalid plugin state %i for %s",
70 plugin->plugin_state, plugin->cmd);
71}
72
73struct plugins *plugins_new(const tal_t *ctx, struct log_book *log_book,
74 struct lightningd *ld)

Callers 2

plugin_conn_finishFunction · 0.85
plugin_manifest_timeoutFunction · 0.85

Calls 1

fatalFunction · 0.70

Tested by

no test coverage detected