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

Function peer_downgrade

connectd/connectd.c:1999–2008  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1997
1998/* lightningd tells us a peer is no longer "important". */
1999static void peer_downgrade(struct daemon *daemon, const u8 *msg)
2000{
2001 struct node_id id;
2002
2003 if (!fromwire_connectd_downgrade_peer(msg, &id))
2004 master_badmsg(WIRE_CONNECTD_DOWNGRADE_PEER, msg);
2005
2006 status_peer_debug(&id, "peer_downgrade");
2007 tal_free(important_id_htable_get(daemon->important_ids, &id));
2008}
2009
2010static void start_shutdown(struct daemon *daemon, const u8 *msg)
2011{

Callers 1

recv_reqFunction · 0.85

Calls 2

tal_freeFunction · 0.85
master_badmsgFunction · 0.50

Tested by

no test coverage detected