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

Function psbt_new_output_serial

common/psbt_open.c:430–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428}
429
430u64 psbt_new_output_serial(struct wally_psbt *psbt, enum tx_role role)
431{
432 u64 serial_id;
433
434 while ((serial_id = get_random_serial(role)) &&
435 psbt_find_serial_output(psbt, serial_id) != -1) {
436 /* keep going; */
437 }
438
439 return serial_id;
440}
441
442bool psbt_has_required_fields(struct wally_psbt *psbt)
443{

Callers 3

json_addpsbtoutputFunction · 0.85
psbt_add_serialsFunction · 0.85
execute_spliceFunction · 0.85

Calls 2

get_random_serialFunction · 0.85
psbt_find_serial_outputFunction · 0.85

Tested by

no test coverage detected