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

clean overflow blocks moved to unfinished block cache on reset chain #19106

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
5 changes: 5 additions & 0 deletions chia/timelord/timelord.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,11 @@ async def _reset_chains(self, *, first_run: bool = False, only_eos: bool = False
self.iteration_to_proof_type[new_block_iters] = IterationType.INFUSION_POINT
# Remove all unfinished blocks that have already passed.
self.unfinished_blocks = new_unfinished_blocks

# remove overflow blocks that were 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
Loading