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

Function psbt_output_set_serial_id

common/psbt_open.c:380–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378
379
380void psbt_output_set_serial_id(const tal_t *ctx,
381 struct wally_psbt_output *output,
382 u64 serial_id)
383{
384 u8 *key = psbt_make_key(tmpctx, PSBT_TYPE_SERIAL_ID, NULL);
385 beint64_t bev = cpu_to_be64(serial_id);
386 psbt_output_set_unknown(ctx, output, key, &bev, sizeof(bev));
387}
388
389int psbt_find_serial_input(struct wally_psbt *psbt, u64 serial_id)
390{

Callers 10

json_addpsbtoutputFunction · 0.85
psbt_add_serialsFunction · 0.85
add_in_out_with_serialFunction · 0.85
change_serialsFunction · 0.85
execute_spliceFunction · 0.85
update_parent_psbtFunction · 0.85
update_node_psbtFunction · 0.85
run_tx_interactiveFunction · 0.85
add_funding_outputFunction · 0.85

Calls 3

psbt_make_keyFunction · 0.85
cpu_to_be64Function · 0.85
psbt_output_set_unknownFunction · 0.85

Tested by 2

add_in_out_with_serialFunction · 0.68
change_serialsFunction · 0.68