URI: 
       tcheck if the wallet has a seed before signing transaction - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 32db2aecc206aa4b0251d2290e639c9a09280dda
   DIR parent 22ce3def72d0fdc4c53ee1319f2bdc346fabcac8
  HTML Author: ecdsa <ecdsa@github>
       Date:   Thu,  7 Mar 2013 17:15:33 +0100
       
       check if the wallet has a seed before signing transaction
       
       Diffstat:
         M lib/wallet.py                       |       6 ++++--
       
       1 file changed, 4 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/lib/wallet.py b/lib/wallet.py
       t@@ -216,6 +216,7 @@ class Wallet:
                return self.get_private_keys([address], password).get(address)
        
            def get_private_keys(self, addresses, password):
       +        if not self.seed: return {}
                # decode seed in any case, in order to test the password
                seed = self.decode_seed(password)
                out = {}
       t@@ -776,8 +777,9 @@ class Wallet:
                    pk_addresses.append(pk_addr)
        
                # get all private keys at once.
       -        private_keys = self.get_private_keys(pk_addresses, password)
       -        tx.sign(private_keys)
       +        if self.seed:
       +            private_keys = self.get_private_keys(pk_addresses, password)
       +            tx.sign(private_keys)
        
                for address, x in outputs:
                    if address not in self.addressbook and not self.is_mine(address):