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 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