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

Function is_peer_error

common/wire_error.c:173–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173const 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

Callers 6

read_body_from_peer_doneFunction · 0.85
test_peer_writeFunction · 0.85
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 1

test_peer_writeFunction · 0.68