relax PoS validation in weight proofs #20298
Open
+13
−8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose:
When validating proofs of space in weight proofs, we don't necessarily know the height of the block, or the previous transaction block height.
This information is technically required to validate the proof-of-space. The reason for this is that the 3.0 hard fork will introduce a phase-out schedule for v1 plots, where the validity of a v1 proof depends on how far long the phase-out we've come.
Since we don't know the height, this patch relaxes the validation to not apply the phase-out to v1 plots.
We also use the height to determine the plot filter schedule. However, both the v1 and v2 plot filters relax over time, so using the peak block height will already use the most relaxed plot filter for the lower heights.
Current Behavior:
New Behavior: