| 34 | } |
| 35 | |
| 36 | static struct bitcoin_tx *tx_spending_utxo(const tal_t *ctx, |
| 37 | const struct utxo *utxo, |
| 38 | size_t num_output, |
| 39 | u32 nlocktime, |
| 40 | u32 nsequence) |
| 41 | { |
| 42 | struct bitcoin_tx *tx = bitcoin_tx(ctx, chainparams, 1, num_output, |
| 43 | nlocktime); |
| 44 | |
| 45 | assert(!utxo->is_p2sh); |
| 46 | bitcoin_tx_add_input(tx, &utxo->outpoint, |
| 47 | nsequence, NULL, utxo->amount, |
| 48 | utxo->scriptPubkey, NULL); |
| 49 | |
| 50 | return tx; |
| 51 | } |
| 52 | |
| 53 | static struct bitcoin_tx *funding_tx(const tal_t *ctx, |
| 54 | const struct utxo *utxo, |
no test coverage detected