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

Function psbt_set_lightning

bitcoin/psbt.c:753–762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

751}
752
753void psbt_set_lightning(const tal_t *ctx,
754 struct wally_map *map,
755 const u8 proprietary_type,
756 const void *value,
757 size_t val_len)
758{
759 u8 *key = psbt_make_key(NULL, proprietary_type, NULL);
760 map_replace(ctx, map, key, value, val_len);
761 tal_free(key);
762}
763
764void psbt_output_set_unknown(const tal_t *ctx,
765 struct wally_psbt_output *out,

Callers 1

psbt_set_channel_idsFunction · 0.85

Calls 3

psbt_make_keyFunction · 0.85
map_replaceFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected