Skip to content

Commit 8ab0884

Browse files
committed
Set current block locktime for coinbase in provide_anchor_reserves
This guarantees we get a unique txid when calling `provide_anchor_reserves` successively as we're immediately mining (and therefore advancing the chain) the transaction after creating it.
1 parent 749ebb8 commit 8ab0884

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/functional_test_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ pub fn provide_anchor_reserves<'a, 'b, 'c>(nodes: &[Node<'a, 'b, 'c>]) -> Transa
409409
}
410410
let tx = Transaction {
411411
version: TxVersion::TWO,
412-
lock_time: LockTime::ZERO,
412+
lock_time: LockTime::from_height(nodes[0].best_block_info().1).unwrap(),
413413
input: vec![TxIn { ..Default::default() }],
414414
output,
415415
};

0 commit comments

Comments
 (0)