fix bug in get_my_claim

This commit is contained in:
Kay Kurokawa 2016-12-05 17:17:17 -05:00
parent f579c8dbb8
commit 9c50cfdcdb

View file

@ -405,12 +405,12 @@ class Wallet(object):
if not claim:
return False
claim['value'] = json.loads(claim['value'])
return claim
return claim
def _get_my_unspent_claim(claims):
for claim in claims:
if claim['name'] == name and not claim['is spent'] and not claim.get('supported_claimid', False):
if claim['name'] == name and not claim['is spent'] and claim['category'] != 'support':
return claim
return False