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

Function equal

tests/fuzz/fuzz-wire-channel_ready.c:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected