fix wallet_balance when checking fee amount
This commit is contained in:
parent
52099c7da7
commit
5bf20096b2
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ class GetStream(object):
|
|||
self.fee = FeeValidator(self.stream_info['fee'])
|
||||
max_key_fee = self._convert_max_fee()
|
||||
converted_fee = self.exchange_rate_manager.to_lbc(self.fee).amount
|
||||
if converted_fee > self.wallet.get_balance():
|
||||
if converted_fee > self.wallet.wallet_balance:
|
||||
log.warning("Insufficient funds to download lbry://%s", self.resolved_name)
|
||||
return defer.fail(InsufficientFundsError())
|
||||
if converted_fee > max_key_fee:
|
||||
|
|
Loading…
Reference in a new issue