This repository has been archived by the owner on Jun 6, 2023. It is now read-only.
Simplify miner deadline state to rely on cron every epoch #992
Labels
change-state
Changes state schema, necessitating major version upgrade/migration
cleanup
Technical debt recovery and other cleanup work
P2
Medium priority, beneficial for network functionality and growth
robustness
Related to correctness
Milestone
The miner actor maintains a deadline index in state, but the current deadline can also be inferred from the current epoch. The deadline exists in state because previously, when cron was not invoked for empty tipsets, the miner needed to track which deadline had been processed by cron (e.g. to detect a missed PoSt). With a reliable cron, the miner can instead assume that cron is for the "current" deadline. While this extra robusness isn't bad, it is confusing, especially to people not familiar with the old behaviour. I propose we remove the unnecessary complexity.
Related to #877, simplifying the power actor. After this, the power actor can reject events "in the past".
Doing this will make #658 redundant.
The text was updated successfully, but these errors were encountered: