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

Function get_networkevent_variant

plugins/autoclean.c:462–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460}
461
462static struct per_variant *get_networkevent_variant(const char *buf,
463 const jsmntok_t *t,
464 struct per_subsystem *subsystem,
465 u64 *timestamp)
466{
467 const jsmntok_t *timetok = json_get_member(buf, t, "timestamp");
468
469 if (!json_to_u64(buf, timetok, timestamp)) {
470 plugin_err(plugin, "Bad networkevent created_at '%.*s'",
471 json_tok_full_len(t),
472 json_tok_full(buf, t));
473 }
474
475 /* There's only one variant here, so use SUCCESS. */
476 return &subsystem->variants[SUCCESS];
477}
478
479static void add_invoice_del_fields(struct out_req *req,
480 const char *buf,

Callers

nothing calls this directly

Calls 5

json_get_memberFunction · 0.85
plugin_errFunction · 0.70
json_to_u64Function · 0.50
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50

Tested by

no test coverage detected