Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
almogdepaz committed Jan 6, 2025
1 parent 1a18f18 commit 3b0ec00
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions chia/timelord/timelord.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,13 @@ async def _reset_chains(self, *, first_run: bool = False, only_eos: bool = False
if self.last_state.get_deficit() < self.constants.MIN_BLOCKS_PER_CHALLENGE_BLOCK:
self.iters_to_submit[Chain.INFUSED_CHALLENGE_CHAIN].append(new_block_iters)
self.iteration_to_proof_type[new_block_iters] = IterationType.INFUSION_POINT
if block in self.overflow_blocks:
self.overflow_blocks.remove(block)
# Remove all unfinished blocks that have already passed.
self.unfinished_blocks = new_unfinished_blocks

# remove overflow blocks that where moved to unfinished cache
for block in new_unfinished_blocks:
if block in self.overflow_blocks:
self.overflow_blocks.remove(block)
# Signage points.
if not only_eos and len(self.signage_point_iters) > 0:
count_signage = 0
Expand Down

0 comments on commit 3b0ec00

Please sign in to comment.