| 154 | } |
| 155 | |
| 156 | static 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. */ |
| 169 | static void handle_connect_to_peer(struct subd *gossip, const u8 *msg) |
no test coverage detected