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

Function psbt_new_input_serial

common/psbt_open.c:373–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371}
372
373u64 psbt_new_input_serial(struct wally_psbt *psbt, enum tx_role role)
374{
375 u64 serial_id;
376
377 while ((serial_id = get_random_serial(role)) &&
378 psbt_find_serial_input(psbt, serial_id) != -1) {
379 /* keep going; */
380 }
381
382 return serial_id;
383}
384
385u64 psbt_new_output_serial(struct wally_psbt *psbt, enum tx_role role)
386{

Callers 2

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