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

Function equal

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

Source from the content-addressed store, hash-verified

26}
27
28static bool equal(const struct tx_ack_rbf *x, const struct tx_ack_rbf *y)
29{
30 if (!channel_id_eq(&x->channel_id, &y->channel_id))
31 return false;
32
33 assert(x->tlvs && y->tlvs);
34 if (!tal_arr_eq(x->tlvs->funding_output_contribution,
35 y->tlvs->funding_output_contribution))
36 return false;
37
38 return !!x->tlvs->require_confirmed_inputs ==
39 !!y->tlvs->require_confirmed_inputs;
40}
41
42void run(const u8 *data, size_t size)
43{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected