From d2150cf142edce93bdeab9e823d98123a0ce8594 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Mon, 18 Feb 2019 20:23:29 -0300 Subject: [PATCH] fix balance check --- lbrynet/stream/stream_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/stream/stream_manager.py b/lbrynet/stream/stream_manager.py index 6505fb500..dd14aed6d 100644 --- a/lbrynet/stream/stream_manager.py +++ b/lbrynet/stream/stream_manager.py @@ -439,7 +439,7 @@ class StreamManager: raise KeyFeeAboveMaxAllowed(msg) else: balance = await self.wallet.default_account.get_balance() - if fee_amount > balance: + if lbc_to_dewies(str(fee_amount)) > balance: msg = f"fee of {fee_amount} exceeds max available balance" log.warning(msg) raise InsufficientFundsError(msg)