Skip to content

Commit

Permalink
Yup, remove that check.
Browse files Browse the repository at this point in the history
  • Loading branch information
VanBarbascu committed Mar 7, 2025
1 parent 900887b commit 852c957
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions chain/chain/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2426,12 +2426,6 @@ impl Chain {

let prev = self.get_block_header(&block.prev_block_hash())?;
let prev_random_value = *prev.random_value();
let prev_height = prev.height();

/* TODO: this trashes the OB if there is a skipped block */
if prev_height + 1 != block.height() {
return Err(Error::InvalidBlockHeight(block.height()));
}

// Prevent time warp attacks and some timestamp manipulations by forcing strict
// time progression.
Expand Down

0 comments on commit 852c957

Please sign in to comment.