mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
permute_tx: generic pointer map.
Turns out we want to permute transactions for the wallet too, so we use void ** rather than assume we're shuffling htlc ** (and do inputs, too!). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -318,7 +318,8 @@ struct bitcoin_tx *commit_tx(const tal_t *ctx,
|
||||
* 7. Sort the outputs into [BIP 69
|
||||
* order](#transaction-input-and-output-ordering)
|
||||
*/
|
||||
permute_outputs(tx->output, tal_count(tx->output), *htlcmap);
|
||||
permute_outputs(tx->output, tal_count(tx->output),
|
||||
(const void **)*htlcmap);
|
||||
|
||||
/* BOLT #3:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user