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

Implement slash storage fault #217

Closed
wants to merge 16 commits into from

Conversation

whyrusleeping
Copy link
Member

Not quite done with this I think, it should work, but I want to write a test. Notable changes include: Storage collateral as a miner constructor parameter.

@whyrusleeping
Copy link
Member Author

Need to take filecoin-project/specs#379 into account, some changes will be needed here.

@whyrusleeping
Copy link
Member Author

also potentially relevant: filecoin-project/specs#449

}

// You can only be slashed once for missing your PoSt.
if self.SlashedAt > 0 {
Copy link

Choose a reason for hiding this comment

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

this looks good, what I can't find is the following:

if a miner has been successfully slashed, then this var must be reset to -1 or null.

Otherwise, a miner can only be slashed once and forever

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, so i think we need to reset it to zero when they next submit a PoSt

@whyrusleeping whyrusleeping force-pushed the feat/slash-storage-fault branch from 4f60a85 to c7eba0e Compare September 20, 2019 21:56
@whyrusleeping
Copy link
Member Author

This is no longer relevant given spec changes

@Kubuxu Kubuxu deleted the feat/slash-storage-fault branch May 13, 2020 20:47
nonsense added a commit that referenced this pull request Nov 6, 2020
* wip

* print out failing test

* missing account in state

* enable puppet test

* add missing preroot

* add puppet actor to lvm

* refactor getting post root and serialize of test vector (#217)
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

Successfully merging this pull request may close these issues.

3 participants