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

Function equal

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

Source from the content-addressed store, hash-verified

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