Skip to content

Commit

Permalink
consensus: change MINIMUM_BLOCK_TIME to be configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
herr-seppia committed Nov 8, 2024
1 parent a3a1e13 commit 3af2669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/src/chain/header_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ impl<'a, DB: database::DB> Validator<'a, DB> {

// Ensure rule of minimum block time is addressed
if candidate_block.timestamp
< self.prev_header.timestamp + MINIMUM_BLOCK_TIME
< self.prev_header.timestamp + *MINIMUM_BLOCK_TIME
{
return Err(HeaderError::BlockTimeLess);
}
Expand Down

0 comments on commit 3af2669

Please sign in to comment.