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

Function equal

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected