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

Fix nil verified deal weight #360

Merged
merged 1 commit into from
May 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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