| 41 | /* AUTOGENERATED MOCKS END */ |
| 42 | |
| 43 | static void write_to_store(int store_fd, const u8 *msg) |
| 44 | { |
| 45 | struct gossip_hdr hdr; |
| 46 | |
| 47 | hdr.len = cpu_to_be32(tal_count(msg)); |
| 48 | /* We don't actually check these! */ |
| 49 | hdr.crc = 0; |
| 50 | hdr.timestamp = 0; |
| 51 | assert(write(store_fd, &hdr, sizeof(hdr)) == sizeof(hdr)); |
| 52 | assert(write(store_fd, msg, tal_count(msg)) == tal_count(msg)); |
| 53 | } |
| 54 | |
| 55 | static void update_connection(int store_fd, |
| 56 | const struct node_id *from, |
no test coverage detected