Skip to content

Commit d29d316

Browse files
authored
fix typo introduced in the deep-reorg performance fix (#16940)
1 parent aa2fd02 commit d29d316

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

chia/consensus/blockchain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ async def add_block(
389389
fork_info.fork_height = block.height - 1
390390
fork_info.peak_height = block.height - 1
391391
fork_info.peak_hash = block.prev_header_hash
392-
fork_info.additions_since_fork == {}
393-
fork_info.removals_since_fork == set()
392+
fork_info.additions_since_fork = {}
393+
fork_info.removals_since_fork = set()
394394

395395
if await self.contains_block_from_db(header_hash):
396396
# We have already validated the block, but if it's not part of the

chia/full_node/full_node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,8 +1268,8 @@ async def add_block_batch(
12681268
fork_info.fork_height = block.height
12691269
fork_info.peak_height = block.height
12701270
fork_info.peak_hash = header_hash
1271-
fork_info.additions_since_fork == {}
1272-
fork_info.removals_since_fork == set()
1271+
fork_info.additions_since_fork = {}
1272+
fork_info.removals_since_fork = set()
12731273
else:
12741274
# We have already validated the block, but if it's not part of the
12751275
# main chain, we still need to re-run it to update the additions and

0 commit comments

Comments
 (0)