Rm comment

This commit is contained in:
Jay Graber 2017-08-25 12:28:58 -07:00
parent fbdd9a5224
commit ef113fdb03
1 changed files with 0 additions and 2 deletions

View File

@ -13,14 +13,12 @@ class Trade(object):
class Contract(object):
def __init__(self, data):
# Keep track of funding and redeem tx?
allowed = ('fulfiller', 'initiator', 'currency', 'p2sh', 'amount', 'fund_tx', 'redeem_tx', 'secret', 'redeemScript', 'redeemblocknum', 'locktime')
for key in data:
if key in allowed:
setattr(self, key, data[key])
def get_status(self):
# keep as function or set as property?
if hasattr(self, 'redeem_tx'):
return 'redeemed'
elif hasattr(self, 'refund_tx'):