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.

Power.OnEpochTickEnd: preempt Miner queries to Power and Reward actors #799

@wadealexc

Description

@wadealexc

Each time the Power actor invokes Miner.ConfirmSectorProofsValid, the Miner makes several queries:

func (a Actor) ConfirmSectorProofsValid(rt Runtime, params *builtin.ConfirmSectorProofsParams) *adt.EmptyValue {
rt.ValidateImmediateCallerIs(builtin.StoragePowerActorAddr)
// get network stats from other actors
baselinePower, epochReward := requestCurrentEpochBaselinePowerAndReward(rt)
pwrTotal := requestCurrentTotalPower(rt)
circulatingSupply := rt.TotalFilCircSupply()

The Power actor should make these queries as part of its OnEpochTickEnd method, and pass them in as additional parameters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Not urgent or importantchange-behaviourChanges behaviour or state interpretation, necessitating a network version upgradecode-readyReady for implementation, with clear pathgood first issueGood for newcomersscaleRelated to chain state or throughput scalability

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions