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

Function handle_peer_update_data

lightningd/gossip_control.c:156–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156static void handle_peer_update_data(struct lightningd *ld, const u8 *msg)
157{
158 struct peer_update update;
159 struct node_id *source;
160
161 if (!fromwire_gossipd_remote_channel_update(msg, msg, &source, &update))
162 fatal("Gossip gave bad GOSSIPD_REMOTE_CHANNEL_UPDATE %s",
163 tal_hex(msg, msg));
164
165 channel_gossip_set_remote_update(ld, &update, source);
166}
167
168/* gossipd would like a connection to this peer for more gossiping. */
169static void handle_connect_to_peer(struct subd *gossip, const u8 *msg)

Callers 1

gossip_msgFunction · 0.85

Calls 3

tal_hexFunction · 0.85
fatalFunction · 0.70

Tested by

no test coverage detected