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

Function psbt_input_mark_ours

common/psbt_open.c:515–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513}
514
515void psbt_input_mark_ours(const tal_t *ctx,
516 struct wally_psbt_input *input)
517{
518 u8 *key = psbt_make_key(tmpctx, PSBT_TYPE_INPUT_MARKER, NULL);
519 beint16_t bev = cpu_to_be16(1);
520
521 psbt_input_set_unknown(ctx, input, key, &bev, sizeof(bev));
522}
523
524bool psbt_input_is_ours(const struct wally_psbt_input *input)
525{

Callers 3

json_addpsbtinputFunction · 0.85
psbt_fundedFunction · 0.85
after_fundpsbtFunction · 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