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

Function peer_downgrade

connectd/connectd.c:2054–2063  ·  view source on GitHub ↗

lightningd tells us a peer is no longer "important". */

Source from the content-addressed store, hash-verified

2052
2053/* lightningd tells us a peer is no longer "important". */
2054static void peer_downgrade(struct daemon *daemon, const u8 *msg)
2055{
2056 struct node_id id;
2057
2058 if (!fromwire_connectd_downgrade_peer(msg, &id))
2059 master_badmsg(WIRE_CONNECTD_DOWNGRADE_PEER, msg);
2060
2061 status_peer_debug(&id, "peer_downgrade");
2062 tal_free(important_id_htable_get(daemon->important_ids, &id));
2063}
2064
2065static void start_shutdown(struct daemon *daemon, const u8 *msg)
2066{

Callers 1

recv_reqFunction · 0.85

Calls 2

tal_freeFunction · 0.85
master_badmsgFunction · 0.50

Tested by

no test coverage detected