[Pkg-bitcoin-devel] Bug#764138: fails to create new wallet or recover from seed
Thorsten Glaser
t.glaser at tarent.de
Mon Jan 12 10:52:25 UTC 2015
On Sun, 5 Oct 2014, Joey Hess wrote:
> Now it fails with "No seed".
See https://github.com/spesmilo/electrum/issues/919
Should probably be RC.
I “live-patched” my files. Here is a bad direct filesystem diff:
--- xold/lib/python2.7/dist-packages/electrum/interface.py 2014-11-23 08:06:00.000000000 +0000
+++ /usr/lib/python2.7/dist-packages/electrum/interface.py 2015-01-12 10:46:31.578093502 +0000
@@ -333,7 +333,7 @@ class Interface(threading.Thread):
continue
try:
- s = ssl.wrap_socket(s, ssl_version=ssl.PROTOCOL_SSLv23, cert_reqs=ssl.CERT_NONE, ca_certs=None)
+ s = ssl.wrap_socket(s, ssl_version=ssl.PROTOCOL_TLSv1, cert_reqs=ssl.CERT_REQUIRED, ca_certs="/etc/ssl/certs/ca-certificates.crt", do_handshake_on_connect=True)
except ssl.SSLError, e:
print_error("SSL error retrieving SSL certificate:", self.host, e)
s = None
@@ -379,7 +379,7 @@ class Interface(threading.Thread):
if self.use_ssl:
try:
s = ssl.wrap_socket(s,
- ssl_version=ssl.PROTOCOL_SSLv23,
+ ssl_version=ssl.PROTOCOL_TLSv1,
cert_reqs=ssl.CERT_REQUIRED,
ca_certs= (temporary_path if is_new else cert_path),
do_handshake_on_connect=True)
@@ -399,7 +399,7 @@ class Interface(threading.Thread):
else:
print_msg("wrong certificate", self.host)
return
- except Exception:
+ except BaseException:
print_error("wrap_socket failed", self.host)
traceback.print_exc(file=sys.stdout)
return
--- xold/lib/python2.7/dist-packages/electrum_gui/qt/installwizard.py 2014-03-11 00:00:00.000000000 +0000
+++ /usr/lib/python2.7/dist-packages/electrum_gui/qt/installwizard.py 2015-01-12 10:38:00.735326442 +0000
@@ -31,7 +31,8 @@ class InstallWizard(QDialog):
def set_layout(self, layout):
w = QWidget()
w.setLayout(layout)
- self.stack.setCurrentIndex(self.stack.addWidget(w))
+ self.stack.addWidget(w)
+ self.stack.setCurrentWidget(w)
def restore_or_create(self):
Now figuring out how to use this program…
bye,
//mirabilos
--
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg
More information about the Pkg-bitcoin-devel
mailing list