| 2378 | } |
| 2379 | |
| 2380 | void handle_peer_disconnected(struct lightningd *ld, const u8 *msg) |
| 2381 | { |
| 2382 | struct node_id id; |
| 2383 | u64 connectd_counter, connected_time_nsec; |
| 2384 | |
| 2385 | if (!fromwire_connectd_peer_disconnected(msg, |
| 2386 | &id, |
| 2387 | &connectd_counter, |
| 2388 | &connected_time_nsec)) |
| 2389 | fatal("Connectd gave bad PEER_DISCONNECTED message %s", |
| 2390 | tal_hex(msg, msg)); |
| 2391 | |
| 2392 | peer_disconnected(ld, &id, connectd_counter, connected_time_nsec, true); |
| 2393 | } |
| 2394 | |
| 2395 | void update_channel_from_inflight(struct lightningd *ld, |
| 2396 | struct channel *channel, |
no test coverage detected