Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Commit

Permalink
Fix nil verified deal weight (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
anorth authored and aarshkshah1992 committed Jun 29, 2020
1 parent 9610f15 commit c0c6f00
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions actors/builtin/miner/miner_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -977,9 +977,10 @@ func (s *SectorOnChainInfo) AsSectorInfo() abi.SectorInfo {

func AsStorageWeightDesc(sectorSize abi.SectorSize, sectorInfo *SectorOnChainInfo) *power.SectorStorageWeightDesc {
return &power.SectorStorageWeightDesc{
SectorSize: sectorSize,
DealWeight: sectorInfo.DealWeight,
Duration: sectorInfo.Info.Expiration - sectorInfo.ActivationEpoch,
SectorSize: sectorSize,
DealWeight: sectorInfo.DealWeight,
VerifiedDealWeight: sectorInfo.VerifiedDealWeight,
Duration: sectorInfo.Info.Expiration - sectorInfo.ActivationEpoch,
}
}

Expand Down

0 comments on commit c0c6f00

Please sign in to comment.