-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix: don't check for t_aux when proving #7011
Conversation
Note: this needs a very careful review (by @cryptonemo or @porcuquine ?), and ideally a quick test in a dev net with real sectors. |
We don't need it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
t_aux
is 'temporary aux'. p_aux
is persistent. You need p_aux
for PoST, but you only need t_aux
until the vanilla PoRep proof has been created. I can't tell from the context here when the check happens, so I can't tell whether it can be removed here.
It's not true that you never need t_aux
, but the need is only temporary. If you want to gain high confidence in this change in a pragmatic way, try changing the check to instead delete that file, then see if you can get all the way to a verifying PoRep. If so, then it's safe.
The risk is that you remove the check and observe that this doesn't break anything in testing. However, if the file is still there (though unchecked), this might be a false negative. In that case, you would have failed to exercise the check in the case that it was needed.
(Alternately, if you want to test the candidate code directly, you can enhance the test to ensure the file has been deleted before the check is run — but in that case, make sure you don't do that before it is even generated for the sector.)
Digging through the code, this check is only for window post. |
Based on that assumption, and the general statements I made above, this should be safe to remove then. Again, the temporary/persistent distinction pertains exactly to whether the auxiliary data is required to complete PoRep only, or over time indefinitely as checked by PoST. |
Ok, this definitely fixes #6998. |
We don't need it (I think?).