| 2272 | } |
| 2273 | |
| 2274 | void handle_peer_disconnected(struct lightningd *ld, const u8 *msg) |
| 2275 | { |
| 2276 | struct node_id id; |
| 2277 | u64 connectd_counter, connected_time_nsec; |
| 2278 | |
| 2279 | if (!fromwire_connectd_peer_disconnected(msg, |
| 2280 | &id, |
| 2281 | &connectd_counter, |
| 2282 | &connected_time_nsec)) |
| 2283 | fatal("Connectd gave bad PEER_DISCONNECTED message %s", |
| 2284 | tal_hex(msg, msg)); |
| 2285 | |
| 2286 | peer_disconnected(ld, &id, connectd_counter, connected_time_nsec, true); |
| 2287 | } |
| 2288 | |
| 2289 | void update_channel_from_inflight(struct lightningd *ld, |
| 2290 | struct channel *channel, |
no test coverage detected