They both do the same thing: convert utxos into tx inputs. Share code. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
These unit tests stayed under lightningd/ even though the units they test are elsewhere. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>