| 395 | } |
| 396 | |
| 397 | void 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 */ |
| 409 | void wally_tx_input_get_txid(const struct wally_tx_input *in, |