Merge pull request #525 from lbryio/fix_update

Fix bug in update
This commit is contained in:
Umpei Kay Kurokawa 2017-03-10 18:39:46 -05:00 committed by GitHub
commit 003b3df378

View file

@ -635,7 +635,7 @@ class Wallet(object):
if my_claim: if my_claim:
log.info("Updating 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() raise InsufficientFundsError()
new_metadata = yield self.update_metadata(_metadata, my_claim['value']) new_metadata = yield self.update_metadata(_metadata, my_claim['value'])
old_claim_outpoint = ClaimOutpoint(my_claim['txid'], my_claim['nout']) old_claim_outpoint = ClaimOutpoint(my_claim['txid'], my_claim['nout'])