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

Function equal

tests/fuzz/fuzz-wire-accept_channel.c:54–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54static bool equal(const struct accept_channel *x,
55 const struct accept_channel *y)
56{
57 size_t upto_tlvs = (uintptr_t)&x->tlvs - (uintptr_t)x;
58 if (memcmp(x, y, upto_tlvs) != 0)
59 return false;
60
61 assert(x->tlvs && y->tlvs);
62
63 if (!tal_arr_eq(x->tlvs->upfront_shutdown_script,
64 y->tlvs->upfront_shutdown_script))
65 return false;
66
67 return tal_arr_eq(x->tlvs->channel_type, y->tlvs->channel_type);
68}
69
70void run(const u8 *data, size_t size)
71{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected