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

Function peer_read

common/peer_io.c:18–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18u8 *peer_read(const tal_t *ctx, struct per_peer_state *pps)
19{
20 u8 *msg = wire_sync_read(ctx, pps->peer_fd);
21 if (!msg)
22 peer_failed_connection_lost();
23
24 status_peer_io(LOG_IO_IN, NULL, msg);
25
26 return msg;
27}

Callers 14

closing_read_peer_msgFunction · 0.85
splice_abortFunction · 0.85
handle_peer_start_batchFunction · 0.85
peer_expect_msg_fourFunction · 0.85
peer_reconnectFunction · 0.85
mainFunction · 0.85
read_next_msgFunction · 0.85
opening_negotiate_msgFunction · 0.85
handle_peer_inFunction · 0.85
opening_negotiate_msgFunction · 0.85

Calls 3

status_peer_ioFunction · 0.70
wire_sync_readFunction · 0.50

Tested by

no test coverage detected