MCPcopy Create free account
hub / github.com/ElementsProject/lightning / is_peer_warning

Function is_peer_warning

common/wire_error.c:165–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165const 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
173const char *is_peer_error(const tal_t *ctx, const u8 *msg)
174{

Callers 4

read_next_msgFunction · 0.85
opening_negotiate_msgFunction · 0.85
opening_negotiate_msgFunction · 0.85

Calls 2

fromwire_peektypeFunction · 0.85
sanitize_errorFunction · 0.85

Tested by

no test coverage detected