From 0879516c6191db7764e4ef27a74b44f936155f07 Mon Sep 17 00:00:00 2001 From: arvidn Date: Tue, 28 Oct 2025 14:23:43 +0100 Subject: [PATCH] minor optimization, skipping v1 plots after they are completely phased-out --- chia/harvester/harvester_api.py | 5 +++++ chia/simulator/block_tools.py | 2 ++ 2 files changed, 7 insertions(+) diff --git a/chia/harvester/harvester_api.py b/chia/harvester/harvester_api.py index 2e8199d255..0d983cf7c7 100644 --- a/chia/harvester/harvester_api.py +++ b/chia/harvester/harvester_api.py @@ -398,6 +398,11 @@ class HarvesterAPI: ) passed += 1 else: + constants = self.harvester.constants + # after the phase-out, ignore v1 plots + if new_challenge.last_tx_height >= constants.HARD_FORK2_HEIGHT + constants.PLOT_V1_PHASE_OUT: + continue + passed += 1 awaitables.append(lookup_challenge(try_plot_filename, try_plot_info)) self.harvester.log.debug(f"new_signage_point_harvester {passed} plots passed the plot filter") diff --git a/chia/simulator/block_tools.py b/chia/simulator/block_tools.py index 6aba25cd2e..718c449db9 100644 --- a/chia/simulator/block_tools.py +++ b/chia/simulator/block_tools.py @@ -1553,6 +1553,8 @@ class BlockTools: f"cannot be used for farming: {plot_info.prover.get_filename()}" ) continue + elif prev_transaction_b_height >= constants.HARD_FORK2_HEIGHT + constants.PLOT_V1_PHASE_OUT: + continue new_challenge: bytes32 = calculate_pos_challenge(plot_id, challenge_hash, signage_point)