add reply_to_offer to livepaymentratemanager
This commit is contained in:
parent
4f60a98eb2
commit
1ee9b3c7a6
1 changed files with 5 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue