Skip to content

Commit 6d48584

Browse files
committed
f cleanup comparison clarity
1 parent 858275a commit 6d48584

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
@@ -62,7 +62,7 @@ pub fn mine_transaction<'a, 'b, 'c, 'd>(node: &'a Node<'b, 'c, 'd>, tx: &Transac
6262
pub fn confirm_transaction_at<'a, 'b, 'c, 'd>(node: &'a Node<'b, 'c, 'd>, tx: &Transaction, conf_height: u32) {
6363
let first_connect_height = node.best_block_info().1 + 1;
6464
assert!(first_connect_height <= conf_height);
65-
if conf_height - first_connect_height >= 1 {
65+
if conf_height > first_connect_height {
6666
connect_blocks(node, conf_height - first_connect_height);
6767
}
6868
let mut block = Block {

0 commit comments

Comments
 (0)