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

Function psbt_input_mark_ours

common/psbt_open.c:467–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467void psbt_input_mark_ours(const tal_t *ctx,
468 struct wally_psbt_input *input)
469{
470 u8 *key = psbt_make_key(tmpctx, PSBT_TYPE_INPUT_MARKER, NULL);
471 beint16_t bev = cpu_to_be16(1);
472
473 psbt_input_set_unknown(ctx, input, key, &bev, sizeof(bev));
474}
475
476bool psbt_input_is_ours(const struct wally_psbt_input *input)
477{

Callers 2

psbt_fundedFunction · 0.85
mfc_psbt_acquiredFunction · 0.85

Calls 3

psbt_make_keyFunction · 0.85
cpu_to_be16Function · 0.85
psbt_input_set_unknownFunction · 0.85

Tested by

no test coverage detected