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

Function bad_req

hsmd/hsmd.c:157–162  ·  view source on GitHub ↗

Convenience wrapper for when we simply can't parse. */

Source from the content-addressed store, hash-verified

155
156/* Convenience wrapper for when we simply can't parse. */
157static struct io_plan *bad_req(struct io_conn *conn,
158 struct client *c,
159 const u8 *msg_in)
160{
161 return bad_req_fmt(conn, c, msg_in, "could not parse request");
162}
163
164/*~ This plan simply says: read the next packet into 'c->msg_in' (parent 'c'),
165 * and then call handle_client with argument 'c' */

Callers 2

init_hsmFunction · 0.85
pass_client_hsmfdFunction · 0.85

Calls 1

bad_req_fmtFunction · 0.85

Tested by

no test coverage detected