mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-20 13:54:36 +01:00
lightningd/funding_tx: output number is 16 bit.
It's actually always 0 or 1, but the spec wants 16 bits, so use that here. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
ccff3ac437
commit
b937793555
5 changed files with 5 additions and 5 deletions
|
@ -13,7 +13,7 @@
|
|||
#endif
|
||||
|
||||
struct bitcoin_tx *funding_tx(const tal_t *ctx,
|
||||
u32 *outnum,
|
||||
u16 *outnum,
|
||||
const struct utxo **utxomap,
|
||||
u64 funding_satoshis,
|
||||
const struct pubkey *local_fundingkey,
|
||||
|
|
|
@ -33,7 +33,7 @@ struct utxo;
|
|||
* a special case because of the P2SH inputs.
|
||||
*/
|
||||
struct bitcoin_tx *funding_tx(const tal_t *ctx,
|
||||
u32 *outnum,
|
||||
u16 *outnum,
|
||||
const struct utxo **utxomap,
|
||||
u64 funding_satoshis,
|
||||
const struct pubkey *local_fundingkey,
|
||||
|
|
|
@ -365,7 +365,7 @@ static u8 *sign_funding_tx(const tal_t *ctx, const u8 *data)
|
|||
struct bitcoin_tx *tx;
|
||||
u8 *wscript, *msg_out;
|
||||
secp256k1_ecdsa_signature *sig;
|
||||
u32 outnum;
|
||||
u16 outnum;
|
||||
size_t i;
|
||||
struct pubkey changekey;
|
||||
|
||||
|
|
|
@ -562,7 +562,7 @@ static void opening_gen_funding(struct subdaemon *opening, const u8 *resp,
|
|||
{
|
||||
u8 *msg;
|
||||
struct sha256_double txid;
|
||||
u32 outnum;
|
||||
u16 outnum;
|
||||
struct pubkey changekey;
|
||||
|
||||
peer_set_condition(fc->peer, "Created funding transaction for channel");
|
||||
|
|
|
@ -49,7 +49,7 @@ int main(void)
|
|||
struct utxo utxo;
|
||||
const struct utxo **utxomap = tal_arr(tmpctx, const struct utxo *, 1);
|
||||
u64 funding_satoshis;
|
||||
u32 funding_outnum;
|
||||
u16 funding_outnum;
|
||||
u8 *subscript;
|
||||
secp256k1_ecdsa_signature sig;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue