| 902 | } |
| 903 | |
| 904 | static bool find_custom_msg(const u16 *custom_msgs, u16 type) |
| 905 | { |
| 906 | for (size_t i = 0; i < tal_count(custom_msgs); i++) { |
| 907 | if (custom_msgs[i] == type) |
| 908 | return true; |
| 909 | } |
| 910 | return false; |
| 911 | } |
| 912 | |
| 913 | static bool handle_custommsg(struct daemon *daemon, |
| 914 | struct peer *peer, |