Add ConsensusFaultElapsed to MinerInfo, remove OnConsensusFault from power actor

This commit is contained in:
Aayush Rajasekaran 2020-09-02 22:37:50 -04:00
parent 0f5855072c
commit a41904fb51
2 changed files with 2 additions and 1 deletions

View File

@ -60,6 +60,7 @@ type MinerInfo struct {
SealProofType abi.RegisteredSealProof SealProofType abi.RegisteredSealProof
SectorSize abi.SectorSize SectorSize abi.SectorSize
WindowPoStPartitionSectors uint64 WindowPoStPartitionSectors uint64
ConsensusFaultElapsed abi.ChainEpoch
} }
func NewApiMinerInfo(info *miner.MinerInfo) MinerInfo { func NewApiMinerInfo(info *miner.MinerInfo) MinerInfo {
@ -81,6 +82,7 @@ func NewApiMinerInfo(info *miner.MinerInfo) MinerInfo {
SealProofType: info.SealProofType, SealProofType: info.SealProofType,
SectorSize: info.SectorSize, SectorSize: info.SectorSize,
WindowPoStPartitionSectors: info.WindowPoStPartitionSectors, WindowPoStPartitionSectors: info.WindowPoStPartitionSectors,
ConsensusFaultElapsed: info.ConsensusFaultElapsed,
} }
if info.PendingWorkerKey != nil { if info.PendingWorkerKey != nil {

View File

@ -82,7 +82,6 @@
"EnrollCronEvent", "EnrollCronEvent",
"OnEpochTickEnd", "OnEpochTickEnd",
"UpdatePledgeTotal", "UpdatePledgeTotal",
"OnConsensusFault",
"SubmitPoRepForBulkVerify", "SubmitPoRepForBulkVerify",
"CurrentTotalPower" "CurrentTotalPower"
], ],