From c130879ef7bc15afb005d536befd17c2f13285e8 Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 30 Sep 2016 00:36:23 -0400 Subject: [PATCH] frontload bug divide availability adjusted price by frontload factor, which will be close to 1 while index is low and close to 2 when index is high - the reduction approaches 50% as index goes up. --- lbrynet/core/PriceModel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/core/PriceModel.py b/lbrynet/core/PriceModel.py index c0bbaf09f..1c1373727 100644 --- a/lbrynet/core/PriceModel.py +++ b/lbrynet/core/PriceModel.py @@ -23,7 +23,7 @@ class MeanAvailabilityWeightedPrice(object): mean_availability = self.blob_tracker.last_mean_availability availability = self.blob_tracker.availability.get(blob, []) index = 0 # blob.index - price = self.base_price * (mean_availability / max(1, len(availability))) * self._frontload(index) + price = self.base_price * (mean_availability / max(1, len(availability))) / self._frontload(index) return round(max(self.min_price, price), 5) def _frontload(self, index):