We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1088c2c commit 475bbfaCopy full SHA for 475bbfa
lightning-block-sync/src/test_utils.rs
@@ -273,9 +273,9 @@ impl chain::Listen for MockChainListener {
273
new_best_block.block_hash, new_best_block.height,
274
);
275
},
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);
+ Some(disconnected_block) => {
+ assert_eq!(new_best_block.block_hash, disconnected_block.header.prev_blockhash);
+ assert_eq!(new_best_block.height, disconnected_block.height - 1);
279
280
}
281
0 commit comments