lotus/chain/actors/builtin/power/v0.go

22 lines
562 B
Go
Raw Normal View History

package power
import (
2020-09-14 12:17:45 +00:00
"github.com/filecoin-project/go-address"
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/lotus/chain/actors/adt"
"github.com/filecoin-project/specs-actors/actors/builtin/power"
)
type v0State struct {
power.State
store adt.Store
}
func (s *v0State) TotalLocked() (abi.TokenAmount, error) {
return s.TotalPledgeCollateral, nil
}
2020-09-14 12:17:45 +00:00
func (s *v0State) MinerNominalPowerMeetsConsensusMinimum(st adt.Store, a address.Address) (bool, error) {
return s.State.MinerNominalPowerMeetsConsensusMinimum(st, a)
}