Add ConsensusFaultElapsed to MinerInfo, remove OnConsensusFault from power actor
This commit is contained in:
parent
0f5855072c
commit
a41904fb51
@ -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 {
|
||||||
|
@ -82,7 +82,6 @@
|
|||||||
"EnrollCronEvent",
|
"EnrollCronEvent",
|
||||||
"OnEpochTickEnd",
|
"OnEpochTickEnd",
|
||||||
"UpdatePledgeTotal",
|
"UpdatePledgeTotal",
|
||||||
"OnConsensusFault",
|
|
||||||
"SubmitPoRepForBulkVerify",
|
"SubmitPoRepForBulkVerify",
|
||||||
"CurrentTotalPower"
|
"CurrentTotalPower"
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user