Skip to content
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 get_sectors_for_winning_post and cleanup #781

Merged
merged 6 commits into from
Oct 23, 2020
Merged

Fix get_sectors_for_winning_post and cleanup #781

merged 6 commits into from
Oct 23, 2020

Conversation

austinabell
Copy link
Contributor

Summary of changes
Changes introduced in this pull request:

  • There was logic broken within getting sectors for winning verification
    • There was an issue with prover id using address bytes with the protocol byte included, where they don't (I removed the pub tag on this method so no one else goes through the same debugging I had to
  • Updates state diff to allow passing a depth to limit recursion (since when using on real network it gets unusable quick

Reference issue to close (if applicable)

Closes

Other information and links

@@ -236,7 +236,7 @@ impl BlockHeader {
pub fn beacon_entries(&self) -> &[BeaconEntry] {
&self.beacon_entries
}
/// Getter for window PoSt proof
/// Getter for winning PoSt proof
pub fn win_post_proof(&self) -> &[PoStProof] {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lmao i can see why this function name can cause confusion (winning vs window)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, there is nothing to confuse it with since there is no window post on the header, but I might as well change the function name too.

This was probably from before the PoSt proof split (iirc the name of it was window? If not idk why this comment)

@austinabell austinabell merged commit aa39749 into main Oct 23, 2020
@austinabell austinabell deleted the austin/diff branch October 23, 2020 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants