tx: Change permute_{inputs,outputs} to sort both old and new txs

This is required in order for both old and new transactions to be identical.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker
2019-03-14 17:47:13 +01:00
committed by Rusty Russell
parent 60fbf1f7d0
commit 7e03db5062
7 changed files with 83 additions and 25 deletions

View File

@@ -199,7 +199,7 @@ struct bitcoin_tx *initial_commit_tx(const tal_t *ctx,
* 7. Sort the outputs into [BIP 69+CLTV
* order](#transaction-input-and-output-ordering)
*/
permute_outputs(tx->output, NULL, NULL);
permute_outputs(tx, NULL, NULL);
/* BOLT #3:
*