| 2436 | } |
| 2437 | |
| 2438 | void handle_peer_disconnected(struct lightningd *ld, const u8 *msg) |
| 2439 | { |
| 2440 | struct node_id id; |
| 2441 | u64 connectd_counter, connected_time_nsec; |
| 2442 | |
| 2443 | if (!fromwire_connectd_peer_disconnected(msg, |
| 2444 | &id, |
| 2445 | &connectd_counter, |
| 2446 | &connected_time_nsec)) |
| 2447 | fatal("Connectd gave bad PEER_DISCONNECTED message %s", |
| 2448 | tal_hex(msg, msg)); |
| 2449 | |
| 2450 | peer_disconnected(ld, &id, connectd_counter, connected_time_nsec, true); |
| 2451 | } |
| 2452 | |
| 2453 | void update_channel_from_inflight(struct lightningd *ld, |
| 2454 | struct channel *channel, |
no test coverage detected