From 55a44f1617d320c56267891eacfb0dd9f9571d40 Mon Sep 17 00:00:00 2001 From: mfrankovi Date: Thu, 13 Jun 2024 14:44:00 +0200 Subject: [PATCH] fix: pillar check --- libraries/config/src/hardfork.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/config/src/hardfork.cpp b/libraries/config/src/hardfork.cpp index b544aeb2a3..78b6642f17 100644 --- a/libraries/config/src/hardfork.cpp +++ b/libraries/config/src/hardfork.cpp @@ -53,7 +53,7 @@ RLP_FIELDS_DEFINE(AspenHardfork, block_num_part_one, block_num_part_two, max_sup bool FicusHardforkConfig::isFicusHardfork(taraxa::PbftPeriod period) const { return period >= block_num; } bool FicusHardforkConfig::isPillarBlockPeriod(taraxa::PbftPeriod period, bool skip_first_pillar_block) const { - return period >= firstPillarBlockPeriod() + (skip_first_pillar_block ? 1 : 0) * pillar_blocks_interval && + return period >= block_num && period >= firstPillarBlockPeriod() + (skip_first_pillar_block ? 1 : 0) * pillar_blocks_interval && period % pillar_blocks_interval == 0; }