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
SectorSize abi.SectorSize
WindowPoStPartitionSectors uint64
ConsensusFaultElapsed abi.ChainEpoch
}
func NewApiMinerInfo(info *miner.MinerInfo) MinerInfo {
@ -81,6 +82,7 @@ func NewApiMinerInfo(info *miner.MinerInfo) MinerInfo {
SealProofType: info.SealProofType,
SectorSize: info.SectorSize,
WindowPoStPartitionSectors: info.WindowPoStPartitionSectors,
ConsensusFaultElapsed: info.ConsensusFaultElapsed,
}
if info.PendingWorkerKey != nil {

View File

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