Skip to content

Commit 475bbfa

Browse files
committed
f rename test variable to clarify
1 parent 1088c2c commit 475bbfa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning-block-sync/src/test_utils.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ impl chain::Listen for MockChainListener {
273273
new_best_block.block_hash, new_best_block.height,
274274
);
275275
},
276-
Some(expected_block) => {
277-
assert_eq!(new_best_block.block_hash, expected_block.header.prev_blockhash);
278-
assert_eq!(new_best_block.height, expected_block.height - 1);
276+
Some(disconnected_block) => {
277+
assert_eq!(new_best_block.block_hash, disconnected_block.header.prev_blockhash);
278+
assert_eq!(new_best_block.height, disconnected_block.height - 1);
279279
},
280280
}
281281
}

0 commit comments

Comments
 (0)