Browse Source

python3 updates

seed_v14
ThomasV 8 years ago
parent
commit
1a6e41cec8
  1. 3
      lib/interface.py
  2. 5
      lib/keystore.py

3
lib/interface.py

@ -175,6 +175,9 @@ class TcpConnection(threading.Thread, util.PrintError):
cert_reqs=ssl.CERT_REQUIRED,
ca_certs=(temporary_path if is_new else cert_path),
do_handshake_on_connect=True)
except socket.timeout:
self.print_error('timeout')
return
except ssl.SSLError as e:
self.print_error("SSL error:", e)
if e.errno != 1:

5
lib/keystore.py

@ -356,7 +356,8 @@ class Old_KeyStore(Deterministic_KeyStore):
def add_seed(self, seedphrase):
Deterministic_KeyStore.add_seed(self, seedphrase)
self.mpk = self.mpk_from_seed(self.seed)
s = self.get_hex_seed(None)
self.mpk = self.mpk_from_seed(s)
def add_master_public_key(self, mpk):
self.mpk = mpk
@ -477,7 +478,7 @@ class Old_KeyStore(Deterministic_KeyStore):
if new_password == '':
new_password = None
if self.has_seed():
decoded = self.get_hex_seed(old_password)
decoded = pw_decode(self.seed, old_password)
self.seed = pw_encode(decoded, new_password)

Loading…
Cancel
Save