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

Function psbt_find_serial_input

common/psbt_open.c:389–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387}
388
389int psbt_find_serial_input(struct wally_psbt *psbt, u64 serial_id)
390{
391 for (size_t i = 0; i < psbt->num_inputs; i++) {
392 u64 in_serial;
393 if (!psbt_get_serial_id(&psbt->inputs[i].unknowns, &in_serial))
394 continue;
395 if (in_serial == serial_id)
396 return i;
397 }
398 return -1;
399}
400
401int psbt_find_serial_output(struct wally_psbt *psbt, u64 serial_id)
402{

Callers 7

get_changesFunction · 0.85
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