From b2c2edfb1261486006dfc437b462ba83d2200f92 Mon Sep 17 00:00:00 2001 From: Kay Kurokawa Date: Fri, 10 Mar 2017 18:28:23 -0500 Subject: [PATCH] fixed bug of decimal not being subtractable from float --- lbrynet/core/Wallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/core/Wallet.py b/lbrynet/core/Wallet.py index f61c213c8..0937498f4 100644 --- a/lbrynet/core/Wallet.py +++ b/lbrynet/core/Wallet.py @@ -635,7 +635,7 @@ class Wallet(object): if my_claim: log.info("Updating claim") - if self.get_balance() < bid - Decimal(my_claim['amount']): + if self.get_balance() < Decimal(bid) - Decimal(my_claim['amount']): raise InsufficientFundsError() new_metadata = yield self.update_metadata(_metadata, my_claim['value']) old_claim_outpoint = ClaimOutpoint(my_claim['txid'], my_claim['nout'])