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

Function equal

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

Source from the content-addressed store, hash-verified

32}
33
34static bool equal(const struct update_fail_malformed_htlc *x,
35 const struct update_fail_malformed_htlc *y)
36{
37 size_t upto_failure_code = (uintptr_t)&x->failure_code - (uintptr_t)x;
38 if (memcmp(x, y, upto_failure_code) != 0)
39 return false;
40 return x->failure_code == y->failure_code;
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