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

Function equal

tests/fuzz/fuzz-wire-shutdown.c:40–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40static bool equal(const struct shutdown *x, const struct shutdown *y)
41{
42 if (!channel_id_eq(&x->channel_id, &y->channel_id))
43 return false;
44 if (!tal_arr_eq(x->scriptpubkey, y->scriptpubkey))
45 return false;
46
47 assert(x->tlvs && y->tlvs);
48 return wrong_funding_equal(x->tlvs->wrong_funding,
49 y->tlvs->wrong_funding);
50}
51
52void run(const u8 *data, size_t size)
53{

Callers

nothing calls this directly

Calls 1

wrong_funding_equalFunction · 0.85

Tested by

no test coverage detected