tfix is_used for unmatured tx - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit d09a10e0f72c9360fa1acace87e7331d05fe3daf DIR parent 99c50aa31f7be0f895fec8069199cf3aad898bcd HTML Author: ThomasV <thomasv@gitorious> Date: Sat, 13 Jun 2015 16:40:50 +0200 fix is_used for unmatured tx Diffstat: M lib/wallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -1141,7 +1141,7 @@ class Abstract_Wallet(object): def is_used(self, address): h = self.history.get(address,[]) c, u, x = self.get_addr_balance(address) - return len(h), len(h) > 0 and c == -u + return len(h), len(h) > 0 and c + u + x == 0 def is_empty(self, address): c, u, x = self.get_addr_balance(address)