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

Function equal

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

Source from the content-addressed store, hash-verified

26}
27
28static bool equal(const struct init *x, const struct init *y)
29{
30 if (!tal_arr_eq(x->globalfeatures, y->globalfeatures))
31 return false;
32 if (!tal_arr_eq(x->features, y->features))
33 return false;
34
35 assert(x->tlvs && y->tlvs);
36
37 if (!tal_arr_eq(x->tlvs->networks, y->tlvs->networks))
38 return false;
39
40 return tal_arr_eq(x->tlvs->remote_addr, y->tlvs->remote_addr);
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