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

Function custommsg_completed

connectd/multiplex.c:944–958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

942}
943
944void custommsg_completed(struct daemon *daemon, const u8 *msg)
945{
946 struct node_id id;
947 const struct peer *peer;
948
949 if (!fromwire_connectd_custommsg_in_complete(msg, &id))
950 master_badmsg(WIRE_CONNECTD_CUSTOMMSG_IN_COMPLETE, msg);
951
952 /* If it's still around, log it. */
953 peer = peer_htable_get(daemon->peers, &id);
954 if (peer) {
955 status_peer_debug(&peer->id, "custommsg processing finished");
956 log_peer_io(peer, msg);
957 }
958}
959
960/* We handle pings and gossip messages. */
961static 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