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

Function hsmd_status_bad_request

hsmd/hsmd.c:656–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654}
655
656u8 *hsmd_status_bad_request(struct hsmd_client *client, const u8 *msg, const char *error)
657{
658 /* Extract the pointer to the hsmd representation of the
659 * client which has access to the underlying connection. */
660 struct client *c = (struct client*)client->extra;
661 bad_req_fmt(c->conn, c, msg, "%s", error);
662
663 /* We often use `return hsmd_status_bad_request` to drop out, and NULL
664 * means we encountered an error. */
665 return NULL;
666}
667
668void hsmd_status_fmt(enum log_level level, const struct node_id *peer,
669 const char *fmt, ...)

Calls 1

bad_req_fmtFunction · 0.85

Tested by

no test coverage detected