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

a miner actor is created with a choice of sector size #2604

Closed
laser opened this issue Apr 17, 2019 · 1 comment
Closed

a miner actor is created with a choice of sector size #2604

laser opened this issue Apr 17, 2019 · 1 comment
Assignees

Comments

@laser
Copy link
Contributor

laser commented Apr 17, 2019

Description

As per the spec, miner actors must be created with a sector size. This sector size can never change; all commitments will refer to sectors of the chosen size.

To begin with, the choice of sector size should be derived from the StorageMarketActor proofs mode. Miners should be created with the smaller sectors if the network is in proofs mode and should be created with larger sectors if not.

Note: We will eventually allow the miner operator to choose a sector size when creating the miner from the CLI.

Tasks

  • Update StorageMarketActor#CreateMiner to use StorageMarketActor.ProofsMode to pick a SectorSize for the miner
  • Update the Actor state to include SectorSize and create Actor#GetSectorSize
  • Update Actor#SubmitPoSt and Actor#CommitSector to use SectorSize stashed in Actor.Storage
@laser laser self-assigned this Apr 17, 2019
@laser
Copy link
Contributor Author

laser commented Apr 18, 2019

Deleting this story in favor of A miner selects a sector size when pledging #2530.

@laser laser closed this as completed Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant