txo.hash added

This commit is contained in:
Lex Berezhny 2019-04-07 21:51:02 -04:00
parent 6788e09ae9
commit fe446862c2

View file

@ -58,6 +58,10 @@ class TXORef:
def id(self): def id(self):
return '{}:{}'.format(self.tx_ref.id, self.position) return '{}:{}'.format(self.tx_ref.id, self.position)
@property
def hash(self):
return self.tx_ref.hash + BCDataStream.uint32.pack(self.position)
@property @property
def is_null(self): def is_null(self):
return self.tx_ref.is_null return self.tx_ref.is_null