| 233 | #endif |
| 234 | |
| 235 | static void write_to_store(int store_fd, const u8 *msg) |
| 236 | { |
| 237 | struct gossip_hdr hdr; |
| 238 | |
| 239 | hdr.len = cpu_to_be32(tal_count(msg)); |
| 240 | /* We don't actually check these! */ |
| 241 | hdr.crc = 0; |
| 242 | hdr.timestamp = 0; |
| 243 | assert(write(store_fd, &hdr, sizeof(hdr)) == sizeof(hdr)); |
| 244 | assert(write(store_fd, msg, tal_count(msg)) == tal_count(msg)); |
| 245 | } |
| 246 | |
| 247 | static void update_connection(int store_fd, |
| 248 | const struct node_id *from, |
no test coverage detected