Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo introduced in the deep-reorg performance fix #16940

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading