@@ -730,12 +730,12 @@ func (msa *minerStateAPI) calculateSectorWeight(ctx context.Context, maddr addre
730730 return types .EmptyInt , fmt .Errorf ("market actor not found" )
731731 } else if s , err := market .Load (store , act ); err != nil {
732732 return types .EmptyInt , fmt .Errorf ("loading market actor state: %w" , err )
733- } else if w , vw , err := s .VerifyDealsForActivation (maddr , pci .DealIDs , height , pci .Expiration ); err != nil {
733+ } else if vw , err := s .VerifyDealsForActivation (maddr , pci .DealIDs , height , pci .Expiration ); err != nil {
734734 return types .EmptyInt , fmt .Errorf ("verifying deals for activation: %w" , err )
735735 } else {
736736 // NB: not exactly accurate, but should always lead us to *over* estimate, not under
737737 duration := pci .Expiration - height
738- sectorWeight = builtin .QAPowerForWeight (ssize , duration , w , vw )
738+ sectorWeight = builtin .QAPowerForWeight (ssize , duration , vw )
739739 }
740740
741741 return sectorWeight , nil
@@ -937,7 +937,7 @@ func (msa *minerStateAPI) StateMinerInitialPledgeForSector(ctx context.Context,
937937 }
938938
939939 verifiedWeight := big .Mul (big .NewIntUnsigned (verifiedSize ), big .NewInt (int64 (sectorDuration )))
940- sectorWeight := builtin .QAPowerForWeight (sectorSize , sectorDuration , big . Zero (), verifiedWeight )
940+ sectorWeight := builtin .QAPowerForWeight (sectorSize , sectorDuration , verifiedWeight )
941941
942942 epochsSinceRampStart , rampDurationEpochs , err := msa .getPledgeRampParams (ctx , ts .Height (), state )
943943 if err != nil {
0 commit comments