mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
dualfund: set the locktime for the user-provided PSBT
This is set by the peer and is non-negotiable. We're not even going to check if you got it right. You were told about it via `openchannel2`. It is what it is.
This commit is contained in:
parent
5a04dc185c
commit
56e8d75dbb
@ -2021,6 +2021,9 @@ static void accepter_start(struct state *state, const u8 *oc2_msg)
|
||||
if (!tx_state->psbt)
|
||||
tx_state->psbt = create_psbt(tx_state, 0, 0,
|
||||
tx_state->tx_locktime);
|
||||
else
|
||||
/* Locktimes must match! */
|
||||
tx_state->psbt->tx->locktime = tx_state->tx_locktime;
|
||||
|
||||
/* Check that total funding doesn't overflow */
|
||||
if (!amount_sat_add(&total, tx_state->opener_funding,
|
||||
|
Loading…
Reference in New Issue
Block a user