mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-22 06:24:22 +01:00
wally: Migrate version and locktime to libwally tx
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
9609d762c8
commit
16f72cb160
@@ -207,14 +207,14 @@ struct bitcoin_tx *initial_commit_tx(const tal_t *ctx,
|
||||
*
|
||||
* * version: 2
|
||||
*/
|
||||
assert(tx->version == 2);
|
||||
assert(tx->wtx->version == 2);
|
||||
|
||||
/* BOLT #3:
|
||||
*
|
||||
* * locktime: upper 8 bits are 0x20, lower 24 bits are the
|
||||
* lower 24 bits of the obscured commitment number
|
||||
*/
|
||||
tx->lock_time
|
||||
tx->wtx->locktime
|
||||
= (0x20000000 | (obscured_commitment_number & 0xFFFFFF));
|
||||
|
||||
/* BOLT #3:
|
||||
|
||||
Reference in New Issue
Block a user