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

Function psbt_add_input

bitcoin/psbt.c:184–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184struct wally_psbt_input *psbt_add_input(struct wally_psbt *psbt,
185 const struct wally_tx_input *input,
186 size_t insert_at)
187{
188 const u32 flags = WALLY_PSBT_FLAG_NON_FINAL; /* Skip script/witness */
189 int wally_err;
190
191 tal_wally_start();
192 wally_err = wally_psbt_add_tx_input_at(psbt, insert_at, flags, input);
193 assert(wally_err == WALLY_OK);
194 tal_wally_end(psbt);
195 return &psbt->inputs[insert_at];
196}
197
198struct wally_psbt_input *psbt_append_input(struct wally_psbt *psbt,
199 const struct bitcoin_outpoint *outpoint,

Callers

nothing calls this directly

Calls 2

tal_wally_startFunction · 0.85
tal_wally_endFunction · 0.85

Tested by

no test coverage detected