From 7caee39c7a2f838037b103d49cae3dceb4792807 Mon Sep 17 00:00:00 2001 From: Christopher Schinnerl Date: Thu, 12 Jul 2018 10:59:53 -0400 Subject: [PATCH] update comments --- modules/renter/proto/renew.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/renter/proto/renew.go b/modules/renter/proto/renew.go index cbc7dafab3..f44189f223 100644 --- a/modules/renter/proto/renew.go +++ b/modules/renter/proto/renew.go @@ -28,8 +28,8 @@ func (cs *ContractSet) Renew(oldContract *SafeContract, params ContractParams, t var basePrice, baseCollateral types.Currency if endHeight+host.WindowSize > lastRev.NewWindowEnd { timeExtension := uint64((endHeight + host.WindowSize) - lastRev.NewWindowEnd) - basePrice = host.StoragePrice.Mul64(lastRev.NewFileSize).Mul64(timeExtension) // cost of already uploaded data. - baseCollateral = host.Collateral.Mul64(lastRev.NewFileSize).Mul64(timeExtension) // collateral for already uploaded data. + basePrice = host.StoragePrice.Mul64(lastRev.NewFileSize).Mul64(timeExtension) // cost of already uploaded data that needs to be covered by the renewed contract. + baseCollateral = host.Collateral.Mul64(lastRev.NewFileSize).Mul64(timeExtension) // same as basePrice. } // Calculate the anticipated transaction fee.