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

Function json_dev_compact_gossip_store

lightningd/gossip_control.c:514–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512}
513
514static struct command_result *json_dev_compact_gossip_store(struct command *cmd,
515 const char *buffer,
516 const jsmntok_t *obj UNNEEDED,
517 const jsmntok_t *params)
518{
519 u8 *msg;
520
521 if (!param(cmd, buffer, params, NULL))
522 return command_param_failed();
523
524 msg = towire_gossipd_dev_compact_store(NULL);
525 subd_req(cmd->ld->gossip, cmd->ld->gossip,
526 take(msg), -1, 0, dev_compact_gossip_store_reply, cmd);
527 return command_still_pending(cmd);
528}
529
530static const struct json_command dev_compact_gossip_store = {
531 "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