minor optimization, skipping v1 plots after they are completely phased-out

This commit is contained in:
arvidn
2025-10-29 11:28:19 +01:00
parent 5492f82db7
commit 0879516c61
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -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")
+2
View File
@@ -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)