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

Function bad_req

hsmd/hsmd.c:174–179  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

172
173/* Convenience wrapper for when we simply can't parse. */
174static struct io_plan *bad_req(struct io_conn *conn,
175 struct client *c,
176 const u8 *msg_in)
177{
178 return bad_req_fmt(conn, c, msg_in, "could not parse request");
179}
180
181/*~ This plan simply says: read the next packet into 'c->msg_in' (parent 'c'),
182 * and then call handle_client with argument 'c' */

Callers 4

preinit_hsmFunction · 0.85
init_hsmFunction · 0.85
pass_client_hsmfdFunction · 0.85

Calls 1

bad_req_fmtFunction · 0.85

Tested by

no test coverage detected