txo.hash added
This commit is contained in:
parent
6788e09ae9
commit
fe446862c2
1 changed files with 4 additions and 0 deletions
|
@ -58,6 +58,10 @@ class TXORef:
|
|||
def id(self):
|
||||
return '{}:{}'.format(self.tx_ref.id, self.position)
|
||||
|
||||
@property
|
||||
def hash(self):
|
||||
return self.tx_ref.hash + BCDataStream.uint32.pack(self.position)
|
||||
|
||||
@property
|
||||
def is_null(self):
|
||||
return self.tx_ref.is_null
|
||||
|
|
Loading…
Reference in a new issue