| 1090 | #endif |
| 1091 | |
| 1092 | static 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 | |
| 1112 | const struct plugin_hook hooks[] = { |
| 1113 | { |
nothing calls this directly
no test coverage detected