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

Function equal

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

Source from the content-addressed store, hash-verified

32}
33
34static bool equal(const struct tx_add_input *x, const struct tx_add_input *y)
35{
36 size_t upto_prevtx = (uintptr_t)&x->prevtx - (uintptr_t)x;
37 if (memcmp(x, y, upto_prevtx) != 0)
38 return false;
39
40 return tal_arr_eq(x->prevtx, y->prevtx);
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