Rm comment
This commit is contained in:
parent
fbdd9a5224
commit
ef113fdb03
|
@ -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'):
|
||||
|
|
Loading…
Reference in New Issue