| 479 | } |
| 480 | |
| 481 | static struct command_result *json_addgossip(struct command *cmd, |
| 482 | const char *buffer, |
| 483 | const jsmntok_t *obj UNNEEDED, |
| 484 | const jsmntok_t *params) |
| 485 | { |
| 486 | u8 *req, *gossip_msg; |
| 487 | if (!param(cmd, buffer, params, |
| 488 | p_req("message", param_bin_from_hex, &gossip_msg), |
| 489 | NULL)) |
| 490 | return command_param_failed(); |
| 491 | |
| 492 | req = towire_gossipd_addgossip(cmd, gossip_msg); |
| 493 | subd_req(cmd->ld->gossip, cmd->ld->gossip, |
| 494 | req, -1, 0, json_addgossip_reply, cmd); |
| 495 | |
| 496 | return command_still_pending(cmd); |
| 497 | } |
| 498 | |
| 499 | static const struct json_command addgossip_command = { |
| 500 | "addgossip", |
nothing calls this directly
no test coverage detected