From a09235da3773958ef603937ebf995d49a13d0e3f Mon Sep 17 00:00:00 2001 From: rkamysz Date: Sat, 8 Apr 2023 22:07:22 +0200 Subject: [PATCH] bugfix: always set new state --- src/block-range/tasks/block-range-default-mode.task.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/block-range/tasks/block-range-default-mode.task.ts b/src/block-range/tasks/block-range-default-mode.task.ts index ab66710..db4e71f 100644 --- a/src/block-range/tasks/block-range-default-mode.task.ts +++ b/src/block-range/tasks/block-range-default-mode.task.ts @@ -81,8 +81,7 @@ export default class BlockRangeDefaultModeTask extends Worker { const tasks = [...actionProcessorTasks, ...deltaProcessorTasks]; // mark this block as a new state only if its index is not lower than the current state - // and if it contains tasks (block number <= last irreversible block) - if (blockNumber > state.blockNumber && tasks.length > 0) { + if (blockNumber > state.blockNumber) { blockState.newState(blockNumber); }