fixed bug of decimal not being subtractable from float

This commit is contained in:
Kay Kurokawa 2017-03-10 18:28:23 -05:00
parent 2303f88bd4
commit b2c2edfb12

View file

@ -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'])