set content_fee attribute

This commit is contained in:
Jack Robison 2019-05-06 13:53:30 -04:00
parent bc060f1378
commit a212cf6ba4
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -379,9 +379,10 @@ class StreamManager:
if to_replace: # delete old stream now that the replacement has started downloading
await self.delete_stream(to_replace)
elif fee_address:
content_fee = await self.wallet.send_amount_to_address(
stream.content_fee = await self.wallet.send_amount_to_address(
lbc_to_dewies(str(fee_amount)), fee_address.encode('latin1')
)
log.info("paid fee of %s for %s", fee_amount, uri)
self.streams[stream.sd_hash] = stream