fixes
This commit is contained in:
@@ -918,10 +918,9 @@ class ElectrumGui():
|
|||||||
s = Timer()
|
s = Timer()
|
||||||
s.start()
|
s.start()
|
||||||
w = QDialog()
|
w = QDialog()
|
||||||
w.resize(100, 50)
|
w.resize(200, 70)
|
||||||
w.move(300, 300)
|
|
||||||
w.setWindowTitle('Electrum')
|
w.setWindowTitle('Electrum')
|
||||||
l = QLabel('...')
|
l = QLabel('')
|
||||||
vbox = QVBoxLayout()
|
vbox = QVBoxLayout()
|
||||||
vbox.addWidget(l)
|
vbox.addWidget(l)
|
||||||
w.setLayout(vbox)
|
w.setLayout(vbox)
|
||||||
|
|||||||
@@ -259,8 +259,6 @@ class Wallet:
|
|||||||
self.receipt = None # next receipt
|
self.receipt = None # next receipt
|
||||||
self.addressbook = [] # outgoing addresses, for payments
|
self.addressbook = [] # outgoing addresses, for payments
|
||||||
|
|
||||||
self.server = random.choice( DEFAULT_SERVERS ) # random choice when the wallet is created
|
|
||||||
|
|
||||||
# not saved
|
# not saved
|
||||||
self.tx_history = {}
|
self.tx_history = {}
|
||||||
|
|
||||||
@@ -280,6 +278,12 @@ class Wallet:
|
|||||||
self.addresses_waiting_for_status = []
|
self.addresses_waiting_for_status = []
|
||||||
self.addresses_waiting_for_history = []
|
self.addresses_waiting_for_history = []
|
||||||
|
|
||||||
|
self.pick_random_server()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def pick_random_server(self):
|
||||||
|
self.server = random.choice( DEFAULT_SERVERS ) # random choice when the wallet is created
|
||||||
|
|
||||||
def is_up_to_date(self):
|
def is_up_to_date(self):
|
||||||
return self.interface.responses.empty() and not ( self.addresses_waiting_for_status or self.addresses_waiting_for_history )
|
return self.interface.responses.empty() and not ( self.addresses_waiting_for_status or self.addresses_waiting_for_history )
|
||||||
@@ -1012,8 +1016,13 @@ class Wallet:
|
|||||||
|
|
||||||
def start_interface(self):
|
def start_interface(self):
|
||||||
|
|
||||||
host, port, protocol = self.server.split(':')
|
try:
|
||||||
port = int(port)
|
host, port, protocol = self.server.split(':')
|
||||||
|
port = int(port)
|
||||||
|
except:
|
||||||
|
self.pick_random_server()
|
||||||
|
host, port, protocol = self.server.split(':')
|
||||||
|
port = int(port)
|
||||||
|
|
||||||
if protocol == 'n':
|
if protocol == 'n':
|
||||||
InterfaceClass = NativeInterface
|
InterfaceClass = NativeInterface
|
||||||
|
|||||||
Reference in New Issue
Block a user