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

Function init

plugins/funder.c:1092–1110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1090#endif
1091
1092static const char *init(struct plugin *p, const char *b, const jsmntok_t *t)
1093{
1094 const char *err;
1095
1096 list_head_init(&pending_opens);
1097
1098 err = funder_check_policy(current_policy);
1099 if (err)
1100 plugin_err(p, "Invalid parameter combination: %s", err);
1101
1102 if (current_policy->rates)
1103 tell_lightningd_lease_rates(p, current_policy->rates);
1104
1105#if DEVELOPER
1106 plugin_set_memleak_handler(p, memleak_mark);
1107#endif
1108
1109 return NULL;
1110}
1111
1112const struct plugin_hook hooks[] = {
1113 {

Callers

nothing calls this directly

Calls 5

list_head_initFunction · 0.85
funder_check_policyFunction · 0.85
plugin_errFunction · 0.70

Tested by

no test coverage detected