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

Function equal

tests/fuzz/fuzz-wire-query_channel_range.c:33–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33static bool equal(const struct query_channel_range *x,
34 const struct query_channel_range *y)
35{
36 size_t upto_tlvs = (uintptr_t)&x->tlvs - (uintptr_t)x;
37 if (memcmp(x, y, upto_tlvs) != 0)
38 return false;
39
40 assert(x->tlvs && y->tlvs);
41 return tal_arr_eq(x->tlvs->query_option, y->tlvs->query_option);
42}
43
44void run(const u8 *data, size_t size)
45{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected