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

Function json_dev_compact_gossip_store

lightningd/gossip_control.c:556–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554}
555
556static struct command_result *json_dev_compact_gossip_store(struct command *cmd,
557 const char *buffer,
558 const jsmntok_t *obj UNNEEDED,
559 const jsmntok_t *params)
560{
561 u8 *msg;
562 if (!param(cmd, buffer, params, NULL))
563 return command_param_failed();
564
565 msg = towire_gossipd_dev_compact_store(NULL);
566 subd_req(cmd->ld->gossip, cmd->ld->gossip,
567 take(msg), -1, 0, dev_compact_gossip_store_reply, cmd);
568 return command_still_pending(cmd);
569}
570
571static const struct json_command dev_compact_gossip_store = {
572 "dev-compact-gossip-store",

Callers

nothing calls this directly

Calls 4

command_param_failedFunction · 0.70
subd_reqClass · 0.70
command_still_pendingFunction · 0.70
paramFunction · 0.50

Tested by

no test coverage detected