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

Function psbt_new_input_serial

common/psbt_open.c:418–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418u64 psbt_new_input_serial(struct wally_psbt *psbt, enum tx_role role)
419{
420 u64 serial_id;
421
422 while ((serial_id = get_random_serial(role)) &&
423 psbt_find_serial_input(psbt, serial_id) != -1) {
424 /* keep going; */
425 }
426
427 return serial_id;
428}
429
430u64 psbt_new_output_serial(struct wally_psbt *psbt, enum tx_role role)
431{

Callers 3

json_addpsbtinputFunction · 0.85
psbt_add_serialsFunction · 0.85
add_funding_outputFunction · 0.85

Calls 2

get_random_serialFunction · 0.85
psbt_find_serial_inputFunction · 0.85

Tested by

no test coverage detected