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

Description
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.