Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.
This repository was archived by the owner on Jun 6, 2023. It is now read-only.

Optimize RescheduleAllAsFaults #1413

@Stebalien

Description

@Stebalien

It currently:

  1. Walks over all epochs after the new fault expiration epoch.
  2. Collects all sectors.
  3. Reschedules them to the fault expiration epoch.

Unfortunately, this will cause as many IPLD reads (from cron) as there are distinct sector expirations.

Instead, we should pass in the known faulty power, non-faulty power, faulty sectors, and non-faulty sectors. Then, we can subtract out the epochs we're not going to reschedule, schedule the new expiration for the remaining sectors, and batch delete the rest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    change-behaviourChanges behaviour or state interpretation, necessitating a network version upgradeenhancementNew feature or requestscaleRelated to chain state or throughput scalability

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions