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

Function output_identical

common/psbt_open.c:148–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148static bool output_identical(const struct wally_psbt *a,
149 size_t a_index,
150 const struct wally_psbt *b,
151 size_t b_index)
152{
153 const u8 *a_out = linearize_output(tmpctx,
154 &a->outputs[a_index],
155 &a->tx->outputs[a_index]);
156 const u8 *b_out = linearize_output(tmpctx,
157 &b->outputs[b_index],
158 &b->tx->outputs[b_index]);
159 return memeq(a_out, tal_bytelen(a_out),
160 b_out, tal_bytelen(b_out));
161}
162
163static void sort_inputs(struct wally_psbt *psbt)
164{

Callers 1

psbt_get_changesetFunction · 0.85

Calls 3

linearize_outputFunction · 0.85
memeqFunction · 0.85
tal_bytelenFunction · 0.85

Tested by

no test coverage detected