You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.
As the comment states, the checks following the call to AllocateSectorNumber are not entirely necessary, but they may be helpful sanity checks.
Assuming they're being kept, I propose moving the existence checks to the AllocateSectorNumber method - they're functionally similar, and this would make PreCommitSector easier to parse.
The text was updated successfully, but these errors were encountered:
anorth
added
cleanup
Technical debt recovery and other cleanup work
P2
Medium priority, beneficial for network functionality and growth
P3
Not urgent or important
and removed
P2
Medium priority, beneficial for network functionality and growth
labels
Aug 6, 2020
Miner.PreCommitSector
requires thatparams.SectorNumber
has not been previously allocated, as sector numbers should not be reused:specs-actors/actors/builtin/miner/miner_actor.go
Lines 445 to 461 in 9d42fb1
As the comment states, the checks following the call to
AllocateSectorNumber
are not entirely necessary, but they may be helpful sanity checks.Assuming they're being kept, I propose moving the existence checks to the
AllocateSectorNumber
method - they're functionally similar, and this would make PreCommitSector easier to parse.The text was updated successfully, but these errors were encountered: