mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
add manual_assert clippy lint (#8578)
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
This commit is contained in:
@ -45,9 +45,10 @@ impl BlockchainTreeConfig {
|
||||
num_of_additional_canonical_block_hashes: u64,
|
||||
max_unconnected_blocks: u32,
|
||||
) -> Self {
|
||||
if max_reorg_depth > max_blocks_in_chain {
|
||||
panic!("Side chain size should be more than finalization window");
|
||||
}
|
||||
assert!(
|
||||
max_reorg_depth <= max_blocks_in_chain,
|
||||
"Side chain size should be more than finalization window"
|
||||
);
|
||||
Self {
|
||||
max_blocks_in_chain,
|
||||
max_reorg_depth,
|
||||
|
||||
Reference in New Issue
Block a user