mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
transaction.py: wtxid is undefined for uncomplete txns
This commit is contained in:
parent
e8b5bcf31e
commit
4193c7ff14
1 changed files with 2 additions and 0 deletions
|
@ -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])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue