electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 4193c7ff14a151350489e089d796759b1f10c5cd
parent e8b5bcf31e33900aa574867eb4722c014d687a42
Author: SomberNight <somber.night@protonmail.com>
Date:   Wed, 13 Jun 2018 19:22:04 +0200

transaction.py: wtxid is undefined for uncomplete txns

Diffstat:
Mlib/transaction.py | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/transaction.py b/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])