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

Function state_desc

lightningd/plugin.c:46–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46static const char *state_desc(const struct plugin *plugin)
47{
48 switch (plugin->plugin_state) {
49 case UNCONFIGURED:
50 return "unconfigured";
51 case AWAITING_GETMANIFEST_RESPONSE:
52 return "before replying to getmanifest";
53 case NEEDS_INIT:
54 return "before we sent init";
55 case AWAITING_INIT_RESPONSE:
56 return "before replying to init";
57 case INIT_COMPLETE:
58 return "during normal operation";
59 }
60 fatal("Invalid plugin state %i for %s",
61 plugin->plugin_state, plugin->cmd);
62}
63
64struct plugins *plugins_new(const tal_t *ctx, struct log_book *log_book,
65 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