Skip to content

Commit

Permalink
bugfix: always set new state
Browse files Browse the repository at this point in the history
  • Loading branch information
rkamysz committed Apr 8, 2023
1 parent ef1ef52 commit a09235d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/block-range/tasks/block-range-default-mode.task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit a09235d

Please sign in to comment.