| 171 | } |
| 172 | |
| 173 | const char *is_peer_error(const tal_t *ctx, const u8 *msg) |
| 174 | { |
| 175 | if (fromwire_peektype(msg) != WIRE_ERROR) |
| 176 | return NULL; |
| 177 | /* connectd demuxes, so we only see it if channel_id is ours. */ |
| 178 | return sanitize_error(ctx, msg, NULL); |
| 179 | } |
| 180 |