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

Function psbt_find_serial_input

common/psbt_open.c:344–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344int psbt_find_serial_input(struct wally_psbt *psbt, u64 serial_id)
345{
346 for (size_t i = 0; i < psbt->num_inputs; i++) {
347 u64 in_serial;
348 if (!psbt_get_serial_id(&psbt->inputs[i].unknowns, &in_serial))
349 continue;
350 if (in_serial == serial_id)
351 return i;
352 }
353 return -1;
354}
355
356int psbt_find_serial_output(struct wally_psbt *psbt, u64 serial_id)
357{

Callers 5

psbt_new_input_serialFunction · 0.85
change_serialsFunction · 0.85
update_parent_psbtFunction · 0.85
update_node_psbtFunction · 0.85
run_tx_interactiveFunction · 0.85

Calls 1

psbt_get_serial_idFunction · 0.85

Tested by 1

change_serialsFunction · 0.68