| 101 | } |
| 102 | |
| 103 | static bool accept_message(const u8 *msg) |
| 104 | { |
| 105 | u16 type = fromwire_peektype(msg); |
| 106 | if (!accept_messages) |
| 107 | return true; |
| 108 | for (size_t i = 0; i < tal_count(accept_messages); i++) { |
| 109 | if (type == accept_messages[i]) |
| 110 | return true; |
| 111 | } |
| 112 | return false; |
| 113 | } |
| 114 | |
| 115 | static struct io_plan *simple_write(struct io_conn *conn, |
| 116 | const void *data, size_t len, |
no test coverage detected