mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-24 10:05:29 -05:00
minor optimization, skipping v1 plots after they are completely phased-out
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user