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

Function status_peer_io

common/status.c:120–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void status_peer_io(enum log_level iodir,
121 const struct node_id *peer,
122 const u8 *p)
123{
124 report_logging_io("SIGUSR1");
125 if (logging_io)
126 status_io_full(iodir, peer, "", p);
127 /* We get a huge amount of gossip; don't log it */
128 else if (!is_msg_for_gossipd(p))
129 status_peer_io_short(iodir, peer, p);
130}
131
132void status_io(enum log_level iodir,
133 const struct node_id *peer,

Callers 11

peer_writeFunction · 0.70
peer_readFunction · 0.70
inject_peer_msgFunction · 0.50
maybe_gossip_msgFunction · 0.50
log_peer_ioFunction · 0.50
handle_custommsgFunction · 0.50
read_body_from_peer_doneFunction · 0.50
peer_init_receivedFunction · 0.50
peer_exchange_initmsgFunction · 0.50
test_peer_writeFunction · 0.50
test_peer_readFunction · 0.50

Calls 4

report_logging_ioFunction · 0.85
status_io_fullFunction · 0.85
is_msg_for_gossipdFunction · 0.85
status_peer_io_shortFunction · 0.85

Tested by 2

test_peer_writeFunction · 0.40
test_peer_readFunction · 0.40