Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Fix seal proof type in miner actor and parameterize WPoSt partition size by it #336

Merged
merged 1 commit into from
Apr 29, 2020

Conversation

anorth
Copy link
Member

@anorth anorth commented Apr 29, 2020

This is part of the way to #335. The registered proof types in all the sector states and messages are now redundant.

FYI @magik6k, @acruikshank

@anorth anorth requested a review from whyrusleeping April 29, 2020 00:47

// The number of sectors in each Window PoSt partition (proof).
// This is computed from the proof type and represented here redundantly.
WindowPoStPartitionSectors uint64
Copy link
Member

Choose a reason for hiding this comment

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

I guess its fine to put this here, since we never rewrite this.

Copy link
Member Author

Choose a reason for hiding this comment

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

You could convince me to take it out pretty easily, but if it [the code that derives it] ever changed we'd be in trouble, and this helps make the state transparent.

Copy link
Member

@whyrusleeping whyrusleeping left a comment

Choose a reason for hiding this comment

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

I'm mildly concerned about the limits I think this implies, but the code itself LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants