mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-26 02:24:18 +01:00
Firstly, not every output is a P2SH (our change outputs aren't, and in future we'll have native incoming segwit txs). Secondly, withdraw_tx() permutes the utxo array, so we can't use a temporary: we got away with it because we were always using the same key! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>