| 998 | } |
| 999 | |
| 1000 | static bool find_custom_msg(const u16 *custom_msgs, u16 type) |
| 1001 | { |
| 1002 | for (size_t i = 0; i < tal_count(custom_msgs); i++) { |
| 1003 | if (custom_msgs[i] == type) |
| 1004 | return true; |
| 1005 | } |
| 1006 | return false; |
| 1007 | } |
| 1008 | |
| 1009 | static bool handle_custommsg(struct daemon *daemon, |
| 1010 | struct peer *peer, |