From fe446862c2cdb12e145d7747873d17e1ea57d599 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sun, 7 Apr 2019 21:51:02 -0400 Subject: [PATCH] txo.hash added --- torba/client/basetransaction.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/torba/client/basetransaction.py b/torba/client/basetransaction.py index 3b7c9735d..3e80679e6 100644 --- a/torba/client/basetransaction.py +++ b/torba/client/basetransaction.py @@ -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