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

Function act_one_responder

connectd/handshake.c:946–961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

944}
945
946static struct io_plan *act_one_responder(struct io_conn *conn,
947 struct handshake *h)
948{
949
950 SUPERVERBOSE("Responder: Act 1");
951
952 /* BOLT #8:
953 *
954 * 1. Read _exactly_ 50 bytes from the network buffer.
955 *
956 * 2. Parse the read message (`m`) into `v`, `re`, and `c`:
957 * * where `v` is the _first_ byte of `m`, `re` is the next 33
958 * bytes of `m`, and `c` is the last 16 bytes of `m`.
959 */
960 return io_read(conn, &h->act1, ACT_ONE_SIZE, act_one_responder2, h);
961}
962
963struct io_plan *responder_handshake_(struct io_conn *conn,
964 const struct pubkey *my_id,

Callers 1

responder_handshake_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected