mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-27 01:34:20 +01:00
Remove Alpha support.
I had already disabled it, and this clears the decks for Segregated Witness which gives us everything we want. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -56,7 +56,6 @@ struct bitcoin_tx *create_commit_tx(const tal_t *ctx,
|
||||
/* Our input spends the anchor tx output. */
|
||||
tx->input[0].txid = *anchor_txid;
|
||||
tx->input[0].index = anchor_index;
|
||||
tx->input[0].input_amount = anchor_satoshis;
|
||||
|
||||
/* First output is a P2SH to a complex redeem script (usu. for me) */
|
||||
redeemscript = bitcoin_redeem_secret_or_delay(tx, our_final,
|
||||
@@ -95,11 +94,8 @@ struct bitcoin_tx *create_commit_tx(const tal_t *ctx,
|
||||
total += tx->output[num++].amount;
|
||||
}
|
||||
assert(num == tx->output_count);
|
||||
|
||||
/* Calculate fee; difference of inputs and outputs. */
|
||||
assert(total <= tx->input[0].input_amount);
|
||||
tx->fee = tx->input[0].input_amount - total;
|
||||
|
||||
assert(total <= anchor_satoshis);
|
||||
|
||||
permute_outputs(tx->output, tx->output_count, NULL);
|
||||
return tx;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user