From 69da1e5f7373b30c7e9c82e065d6ff8391650d5b Mon Sep 17 00:00:00 2001 From: anorth <445306+anorth@users.noreply.github.com> Date: Mon, 11 May 2020 08:57:52 +1000 Subject: [PATCH] Fix nil verified deal weight --- actors/builtin/miner/miner_state.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/actors/builtin/miner/miner_state.go b/actors/builtin/miner/miner_state.go index f1bf833d2..c09011cc8 100644 --- a/actors/builtin/miner/miner_state.go +++ b/actors/builtin/miner/miner_state.go @@ -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, } }