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

Function init

plugins/keysend.c:110–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 *****************************************************************************/
109
110static const char *init(struct plugin *p, const char *buf UNUSED,
111 const jsmntok_t *config UNUSED)
112{
113 rpc_scan(p, "getinfo", take(json_out_obj(NULL, NULL, NULL)),
114 "{id:%}", JSON_SCAN(json_to_node_id, &my_id));
115
116 rpc_scan(p, "listconfigs",
117 take(json_out_obj(NULL, "config", "max-locktime-blocks")),
118 "{max-locktime-blocks:%}",
119 JSON_SCAN(json_to_number, &maxdelay_default));
120
121 return NULL;
122}
123
124struct payment_modifier *pay_mods[] = {
125 &keysend_pay_mod,

Callers

nothing calls this directly

Calls 2

rpc_scanFunction · 0.85
json_out_objFunction · 0.85

Tested by

no test coverage detected