File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -102,22 +102,6 @@ def locktime(self):
102102 self ._locktime = decode_uint32 (self .hex [- 4 :])
103103 return self ._locktime
104104
105- @property
106- def hash (self ):
107- """Returns the transaction's hash"""
108- if self ._hash is None :
109- # segwit transactions have two transaction ids/hashes, txid and wtxid
110- # txid is a hash of all of the legacy transaction fields only
111- if self .is_segwit :
112- txid = self .hex [:4 ] + self .hex [
113- 6 :self ._offset_before_tx_witnesses ] + self .hex [
114- - 4 :]
115- else :
116- txid = self .hex
117- self ._hash = format_hash (double_sha256 (txid ))
118-
119- return self ._hash
120-
121105 @property
122106 def hash (self ):
123107 """Returns the transaction's id. Equivalent to the hash for non SegWit transactions,
You can’t perform that action at this time.
0 commit comments