-
Notifications
You must be signed in to change notification settings - Fork 0
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
SP pallet (hooks): pre-commit hook #103
Comments
It's handled in Pre-commits are stored in
They are added to I'm yet to figure out when |
Cron Events are scheduled for a Miner Actor on a deadline for a pre-commit. |
As we don't have neither Miner Actor, nor 'scheduled crons', only have hooks, we need to 'schedule' it differently. |
The first (#125) proposed implementation works like this:
I propose to make a O(Sectors * Blocks) algorithm (as in FileCoin), so -> indexing pre-commits by their expiration (BlockNumber). Then the work done in |
Go with bad complexity impl and document the good approach for refactoring |
Pre-commit hook
This hook checks pre-committed sectors for all SPs and checks if the sector is expired (no proof submitted for X amount of time). If the sector is expired, it should remove that sector and burn the SPs initial deposit.
Reference:
The text was updated successfully, but these errors were encountered: