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

Function hsmd_status_bad_request

hsmd/hsmd.c:575–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573#endif /* DEVELOPER */
574
575u8 *hsmd_status_bad_request(struct hsmd_client *client, const u8 *msg, const char *error)
576{
577 /* Extract the pointer to the hsmd representation of the
578 * client which has access to the underlying connection. */
579 struct client *c = (struct client*)client->extra;
580 bad_req_fmt(c->conn, c, msg, "%s", error);
581
582 /* We often use `return hsmd_status_bad_request` to drop out, and NULL
583 * means we encountered an error. */
584 return NULL;
585}
586
587void hsmd_status_fmt(enum log_level level, const struct node_id *peer,
588 const char *fmt, ...)

Calls 1

bad_req_fmtFunction · 0.85

Tested by

no test coverage detected