Returns true if the message type should be handled by CLN's core */
| 146 | |
| 147 | /* Returns true if the message type should be handled by CLN's core */ |
| 148 | bool peer_wire_is_internal(enum peer_wire type) |
| 149 | { |
| 150 | /* Unknown messages are not handled by CLN */ |
| 151 | if (!peer_wire_is_defined(type)) |
| 152 | return false; |
| 153 | |
| 154 | /* handled by pluigns */ |
| 155 | if (type == WIRE_PEER_STORAGE || type == WIRE_PEER_STORAGE_RETRIEVAL) |
| 156 | return false; |
| 157 | |
| 158 | return true; |
| 159 | } |
| 160 | |
| 161 | /* Extract channel_id from various packets, return true if possible. */ |
| 162 | bool extract_channel_id(const u8 *in_pkt, struct channel_id *channel_id) |
no outgoing calls
no test coverage detected