-
Notifications
You must be signed in to change notification settings - Fork 144
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
miner actor implemented #486
Conversation
I lied about doing all in one commit, figured it might be easier to reverse review if not all at once and I don't want to lose changes and redo any of this: 80e1bd7 I will continue along and do the other ~1/2 tomorrow and can merge the two commits if it makes it easier |
p2 6d97b3d |
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.
approval but keep in mind it's based on my own changes at the end there
|
||
impl DeadlineInfo { | ||
pub fn new(period_start: ChainEpoch, deadline_idx: usize, current_epoch: ChainEpoch) -> Self { | ||
if deadline_idx < WPOST_PERIOD_DEADLINES { |
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.
Do you think it is worth checking the above restrictions like period_start > current_epoch here and throwing an Err?
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.
can't do that, would be inconsistent (unless I'm missing something)
Summary of changes
Changes introduced in this pull request:
Reference issue to close (if applicable)
Closes #265
Other information and links