We were setting the wrong input number: don't assume it's the same as the UTXO number, but simply the last-appended input. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>