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

Function psbt_add_input

bitcoin/psbt.c:114–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114struct wally_psbt_input *psbt_add_input(struct wally_psbt *psbt,
115 struct wally_tx_input *input,
116 size_t insert_at)
117{
118 const u32 flags = WALLY_PSBT_FLAG_NON_FINAL; /* Skip script/witness */
119 int wally_err;
120
121 tal_wally_start();
122 wally_err = wally_psbt_add_input_at(psbt, insert_at, flags, input);
123 assert(wally_err == WALLY_OK);
124 tal_wally_end(psbt);
125 return &psbt->inputs[insert_at];
126}
127
128struct wally_psbt_input *psbt_append_input(struct wally_psbt *psbt,
129 const struct bitcoin_outpoint *outpoint,

Callers 1

update_parent_psbtFunction · 0.85

Calls 2

tal_wally_startFunction · 0.85
tal_wally_endFunction · 0.85

Tested by

no test coverage detected