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

Function bad_req

hsmd/hsmd.c:159–164  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

157
158/* Convenience wrapper for when we simply can't parse. */
159static struct io_plan *bad_req(struct io_conn *conn,
160 struct client *c,
161 const u8 *msg_in)
162{
163 return bad_req_fmt(conn, c, msg_in, "could not parse request");
164}
165
166/*~ This plan simply says: read the next packet into 'c->msg_in' (parent 'c'),
167 * 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