Returns true if the message type should be handled by CLN's core */
| 132 | |
| 133 | /* Returns true if the message type should be handled by CLN's core */ |
| 134 | bool peer_wire_is_internal(enum peer_wire type) |
| 135 | { |
| 136 | /* Unknown messages are not handled by CLN */ |
| 137 | if (!peer_wire_is_defined(type)) |
| 138 | return false; |
| 139 | |
| 140 | /* handled by pluigns */ |
| 141 | if (type == WIRE_PEER_STORAGE || type == WIRE_PEER_STORAGE_RETRIEVAL) |
| 142 | return false; |
| 143 | |
| 144 | return true; |
| 145 | } |
| 146 | |
| 147 | /* Extract channel_id from various packets, return true if possible. */ |
| 148 | bool extract_channel_id(const u8 *in_pkt, struct channel_id *channel_id) |
no outgoing calls
no test coverage detected