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

Function equal

tests/fuzz/fuzz-wire-update_fail_htlc.c:28–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28static bool equal(const struct update_fail_htlc *x,
29 const struct update_fail_htlc *y)
30{
31 size_t upto_reason = (uintptr_t)&x->reason - (uintptr_t)x;
32 if (memcmp(x, y, upto_reason) != 0)
33 return false;
34
35 return tal_arr_eq(x->reason, y->reason);
36}
37
38void run(const u8 *data, size_t size)
39{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected