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

Function tx_spending_utxo

devtools/mkfunding.c:36–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36static 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
53static struct bitcoin_tx *funding_tx(const tal_t *ctx,
54 const struct utxo *utxo,

Callers 1

funding_txFunction · 0.85

Calls 2

bitcoin_tx_add_inputFunction · 0.85
bitcoin_txClass · 0.70

Tested by

no test coverage detected