Browse Source
transaction.py: wtxid is undefined for uncomplete txns
3.2.x
SomberNight
7 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
2 additions and
0 deletions
-
lib/transaction.py
|
|
@ -988,6 +988,8 @@ class Transaction: |
|
|
|
|
|
|
|
def wtxid(self): |
|
|
|
self.deserialize() |
|
|
|
if not self.is_complete(): |
|
|
|
return None |
|
|
|
ser = self.serialize_to_network(witness=True) |
|
|
|
return bh2u(Hash(bfh(ser))[::-1]) |
|
|
|
|
|
|
|