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

Function equal

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected