From 3af26690856a5a98451ec408a9d771160255627a Mon Sep 17 00:00:00 2001 From: Herr Seppia Date: Fri, 8 Nov 2024 11:08:31 +0100 Subject: [PATCH] consensus: change MINIMUM_BLOCK_TIME to be configurable --- node/src/chain/header_validation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/src/chain/header_validation.rs b/node/src/chain/header_validation.rs index 8d4577e10..6b7e99451 100644 --- a/node/src/chain/header_validation.rs +++ b/node/src/chain/header_validation.rs @@ -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); }