From 9c06bee8c737ecfebcfce2adfbba7415082ef07e Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Wed, 1 Jul 2015 16:54:11 +0300 Subject: [PATCH 1/2] interface: slow_parse() is not defined for X509 --- lib/interface.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/interface.py b/lib/interface.py index d9d0bdac..0c7a3c29 100644 --- a/lib/interface.py +++ b/lib/interface.py @@ -228,7 +228,6 @@ class TcpInterface(threading.Thread): try: x = x509.X509() x.parse(cert) - x.slow_parse() except: traceback.print_exc(file=sys.stderr) self.print_error("wrong certificate") @@ -342,7 +341,6 @@ def check_cert(host, cert): try: x = x509.X509() x.parse(cert) - x.slow_parse() except: traceback.print_exc(file=sys.stdout) return From daee02e22d178d88c87c5e9add218d930cfddbd9 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Wed, 1 Jul 2015 18:15:35 +0300 Subject: [PATCH 2/2] commands: fix typo rename "sec" to "privkey" --- lib/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/commands.py b/lib/commands.py index 5f607624..6e544ed4 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -199,8 +199,8 @@ class Commands: t = Transaction(tx) t.deserialize() if privkey: - pubkey = bitcoin.public_key_from_private_key(sec) - t.sign({pubkey:sec}) + pubkey = bitcoin.public_key_from_private_key(privkey) + t.sign({pubkey:privkey}) else: self.wallet.sign_transaction(t, self.password) return t