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

Function bitcoin_tx_input_set_outpoint

bitcoin/tx.c:397–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397void bitcoin_tx_input_set_outpoint(struct bitcoin_tx *tx, int innum,
398 const struct bitcoin_outpoint *outpoint)
399{
400 struct wally_tx_input *in;
401 assert(innum < tx->wtx->num_inputs);
402
403 in = &tx->wtx->inputs[innum];
404 CROSS_TYPE_ASSIGNMENT(&in->txhash, &outpoint->txid);
405 in->index = outpoint->n;
406}
407
408/* FIXME: remove */
409void wally_tx_input_get_txid(const struct wally_tx_input *in,

Callers 1

close_txFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected