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

Function is_wrong_channel

common/read_peer_msg.c:59–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59bool is_wrong_channel(const u8 *msg, const struct channel_id *expected,
60 struct channel_id *actual)
61{
62 if (!expected)
63 return false;
64
65 if (!extract_channel_id(msg, actual))
66 return false;
67
68 return !channel_id_eq(expected, actual);
69}
70
71bool handle_peer_error(struct per_peer_state *pps,
72 const struct channel_id *channel_id,

Callers 2

opening_negotiate_msgFunction · 0.85
opening_negotiate_msgFunction · 0.85

Calls 1

extract_channel_idFunction · 0.85

Tested by

no test coverage detected