psbt: remove input_amounts from bitcoin tx

Instead we will stash them into the PSBT as a utxo/witness record (which
includes the amount)
This commit is contained in:
niftynei
2020-05-26 20:37:44 -05:00
committed by Christian Decker
parent 85f395f7d4
commit a04f0fe250
22 changed files with 153 additions and 155 deletions

View File

@@ -165,8 +165,6 @@ int main(int argc, char *argv[])
printf("# funding witness script = %s\n",
tal_hex(NULL, funding_wscript));
/* Need input amount for signing */
tx->input_amounts[0] = tal_dup(tx, struct amount_sat, &funding_amount);
sign_tx_input(tx, 0, NULL, funding_wscript,
&funding_privkey[LOCAL],
&funding_pubkey[LOCAL],