add hash property to txoref

This commit is contained in:
Victor Shyba 2019-03-20 13:56:53 -03:00 committed by Lex Berezhny
parent ca4a07f766
commit 38ae660a68

View file

@ -53,6 +53,10 @@ class TXORef:
self.tx_ref = tx_ref
self.position = position
@property
def hash(self):
return self.tx_ref.hash
@property
def id(self):
return '{}:{}'.format(self.tx_ref.id, self.position)