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

Function equal

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected