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

Function custommsg_completed

connectd/multiplex.c:1040–1054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1038}
1039
1040void custommsg_completed(struct daemon *daemon, const u8 *msg)
1041{
1042 struct node_id id;
1043 const struct peer *peer;
1044
1045 if (!fromwire_connectd_custommsg_in_complete(msg, &id))
1046 master_badmsg(WIRE_CONNECTD_CUSTOMMSG_IN_COMPLETE, msg);
1047
1048 /* If it's still around, log it. */
1049 peer = peer_htable_get(daemon->peers, &id);
1050 if (peer) {
1051 status_peer_debug(&peer->id, "custommsg processing finished");
1052 log_peer_io(peer, msg);
1053 }
1054}
1055
1056/* We handle pings and gossip messages. */
1057static bool handle_message_locally(struct peer *peer, const u8 *msg)

Callers 1

recv_reqFunction · 0.85

Calls 2

log_peer_ioFunction · 0.85
master_badmsgFunction · 0.50

Tested by

no test coverage detected