treturn zero if unconfirmed - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit b59e20a1ad8df7a29502f5a66c6016aeccf479ad DIR parent 2a06a5b493dbfb275c25746f708a980c222f7d8e HTML Author: ThomasV <thomasv@gitorious> Date: Fri, 26 Oct 2012 06:59:33 +0200 return zero if unconfirmed Diffstat: M lib/verifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/lib/verifier.py b/lib/verifier.py t@@ -43,7 +43,7 @@ class WalletVerifier(threading.Thread): self.set_local_height() def get_confirmations(self, tx): - return (self.local_height - self.verified_tx[tx] + 1) if tx in self.verified_tx else None + return (self.local_height - self.verified_tx[tx] + 1) if tx in self.verified_tx else 0 def run(self): requested_merkle = []