forked from LBRYCommunity/lbry-sdk
add hash property to txoref
This commit is contained in:
parent
ca4a07f766
commit
38ae660a68
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue