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

Function equal

tests/fuzz/fuzz-wire-closing_signed.c:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected