projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
get_route: fix outdated var name
[rust-lightning]
/
lightning-block-sync
/
src
/
test_utils.rs
diff --git
a/lightning-block-sync/src/test_utils.rs
b/lightning-block-sync/src/test_utils.rs
index b9bc519b9e84aeacfb5af3cd36c352bcb99915b2..597d2a85fd51ca8fae8274ec1e6b78adcdc5c9b4 100644
(file)
--- a/
lightning-block-sync/src/test_utils.rs
+++ b/
lightning-block-sync/src/test_utils.rs
@@
-106,7
+106,7
@@
impl Blockchain {
BlockHeaderData {
chainwork: self.blocks[0].header.work() + Uint256::from_u64(height as u64).unwrap(),
height: height as u32,
BlockHeaderData {
chainwork: self.blocks[0].header.work() + Uint256::from_u64(height as u64).unwrap(),
height: height as u32,
- header: self.blocks[height].header
.clone()
,
+ header: self.blocks[height].header,
}
}
}
}
@@
-162,7
+162,7
@@
impl BlockSource for Blockchain {
}
if self.filtered_blocks {
}
if self.filtered_blocks {
- return Ok(BlockData::HeaderOnly(block.header
.clone()
));
+ return Ok(BlockData::HeaderOnly(block.header));
} else {
return Ok(BlockData::FullBlock(block.clone()));
}
} else {
return Ok(BlockData::FullBlock(block.clone()));
}