From 1ee9b3c7a6b85dd5acc4c9c7856d138efa18316f Mon Sep 17 00:00:00 2001 From: Jack Date: Wed, 5 Oct 2016 23:03:16 -0400 Subject: [PATCH] add reply_to_offer to livepaymentratemanager --- lbrynet/lbrylive/PaymentRateManager.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lbrynet/lbrylive/PaymentRateManager.py b/lbrynet/lbrylive/PaymentRateManager.py index 8234efa31..8a14cf9a8 100644 --- a/lbrynet/lbrylive/PaymentRateManager.py +++ b/lbrynet/lbrylive/PaymentRateManager.py @@ -27,6 +27,11 @@ class LiveStreamPaymentRateManager(object): response = self._payment_rate_manager.strategy.respond_to_offer(offer, peer, blobs) return response.accepted + def reply_to_offer(self, peer, blobs, offer): + reply = self._payment_rate_manager.strategy.respond_to_offer(offer, peer, blobs) + self._payment_rate_manager.strategy.offer_accepted(peer, reply) + return reply + def get_effective_min_blob_data_payment_rate(self): rate = self.min_blob_data_payment_rate if rate is None: