mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-10 01:24:30 +01:00
tx: add setter for tx locktime
We need to update the psbt's global transaction simultaneously, so we wrap access to the locktime in a method which will handle both
This commit is contained in:
committed by
Christian Decker
parent
db8ef922ed
commit
f9300e8480
@@ -228,8 +228,8 @@ struct bitcoin_tx *initial_commit_tx(const tal_t *ctx,
|
||||
* * locktime: upper 8 bits are 0x20, lower 24 bits are the
|
||||
* lower 24 bits of the obscured commitment number
|
||||
*/
|
||||
tx->wtx->locktime =
|
||||
(0x20000000 | (obscured_commitment_number & 0xFFFFFF));
|
||||
bitcoin_tx_set_locktime(tx,
|
||||
(0x20000000 | (obscured_commitment_number & 0xFFFFFF)));
|
||||
|
||||
/* BOLT #3:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user