Skip to content

Commit

Permalink
Fix skipping old root block flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjaahhh committed Jun 29, 2019
1 parent 44f8d52 commit 949660f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quarkchain/cluster/root_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def add_block(self, block, write_db=True, skip_if_too_old=True):
- the header (or hashes) are un-ordered as long as they contains valid sub-chains from previous root block
"""

if not skip_if_too_old and (
if skip_if_too_old and (
self.tip.height - block.header.height
> self.root_config.MAX_STALE_ROOT_BLOCK_HEIGHT_DIFF
):
Expand Down

0 comments on commit 949660f

Please sign in to comment.