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

Function psbt_input_set_serial_id

common/psbt_open.c:324–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322
323
324void psbt_input_set_serial_id(const tal_t *ctx,
325 struct wally_psbt_input *input,
326 u64 serial_id)
327{
328 u8 *key = psbt_make_key(tmpctx, PSBT_TYPE_SERIAL_ID, NULL);
329 beint64_t bev = cpu_to_be64(serial_id);
330
331 psbt_input_set_unknown(ctx, input, key, &bev, sizeof(bev));
332}
333
334
335void psbt_output_set_serial_id(const tal_t *ctx,

Callers 6

psbt_add_serialsFunction · 0.85
add_in_out_with_serialFunction · 0.85
change_serialsFunction · 0.85
update_parent_psbtFunction · 0.85
update_node_psbtFunction · 0.85
run_tx_interactiveFunction · 0.85

Calls 3

psbt_make_keyFunction · 0.85
cpu_to_be64Function · 0.85
psbt_input_set_unknownFunction · 0.85

Tested by 2

add_in_out_with_serialFunction · 0.68
change_serialsFunction · 0.68