Skip to content

Commit

Permalink
fix typo introduced in the deep-reorg performance fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Nov 28, 2023
1 parent c7bb694 commit 528cfa6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions chia/consensus/blockchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ async def add_block(
fork_info.fork_height = block.height - 1
fork_info.peak_height = block.height - 1
fork_info.peak_hash = block.prev_header_hash
fork_info.additions_since_fork == {}
fork_info.removals_since_fork == set()
fork_info.additions_since_fork = {}
fork_info.removals_since_fork = set()

if await self.contains_block_from_db(header_hash):
# We have already validated the block, but if it's not part of the
Expand Down
4 changes: 2 additions & 2 deletions chia/full_node/full_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1268,8 +1268,8 @@ async def add_block_batch(
fork_info.fork_height = block.height
fork_info.peak_height = block.height
fork_info.peak_hash = header_hash
fork_info.additions_since_fork == {}
fork_info.removals_since_fork == set()
fork_info.additions_since_fork = {}
fork_info.removals_since_fork = set()
else:
# We have already validated the block, but if it's not part of the
# main chain, we still need to re-run it to update the additions and
Expand Down

0 comments on commit 528cfa6

Please sign in to comment.