Skip to content

Commit

Permalink
impl in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
ksrichard committed Aug 1, 2024
1 parent 566c346 commit 3a619c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sharechain/in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ impl ShareChain for InMemoryShareChain {
let chain = self.chain(block_levels_write_lock.iter());
if let Some(last_block) = chain.last() {
if last_block.hash() != genesis_block().hash()
// && usize::try_from(last_block.height()).map_err(Error::FromIntConversion)? < MAX_BLOCKS_COUNT
&& usize::try_from(last_block.height()).map_err(Error::FromIntConversion)? < MAX_BLOCKS_COUNT
&& usize::try_from(blocks[0].height()).map_err(Error::FromIntConversion)? > MAX_BLOCKS_COUNT
{
block_levels_write_lock.clear();
Expand Down

0 comments on commit 3a619c6

Please sign in to comment.