| 163 | } |
| 164 | |
| 165 | const char *is_peer_warning(const tal_t *ctx, const u8 *msg) |
| 166 | { |
| 167 | if (fromwire_peektype(msg) != WIRE_WARNING) |
| 168 | return NULL; |
| 169 | /* connectd demuxes, so we only see it if channel_id is ours. */ |
| 170 | return sanitize_error(ctx, msg, NULL); |
| 171 | } |
| 172 | |
| 173 | const char *is_peer_error(const tal_t *ctx, const u8 *msg) |
| 174 | { |
no test coverage detected