Browse Source

servers thread

283
thomasv 13 years ago
parent
commit
96e2a3d7e1
  1. 1
      client/electrum
  2. 2
      client/gui.py
  3. 4
      client/interface.py
  4. 2
      client/version.py

1
client/electrum

@ -59,6 +59,7 @@ if __name__ == '__main__':
if cmd == 'gui' or re.match('^bitcoin:', cmd):
import gui
interface.get_servers()
gui.init_wallet(wallet)
gui = gui.BitcoinGUI(wallet)
interface.start(wallet)

2
client/gui.py

@ -105,7 +105,6 @@ def init_wallet(wallet):
wallet.new_seed(None)
# ask for the server.
wallet.interface.get_servers()
run_network_dialog( wallet, parent=None )
# generate first key
@ -119,7 +118,6 @@ def init_wallet(wallet):
else:
# ask for the server.
wallet.interface.get_servers()
run_network_dialog( wallet, parent=None )
# ask for seed and gap.

4
client/interface.py

@ -27,7 +27,7 @@ class Interface:
def __init__(self):
self.default_servers = ['ecdsa.org','electrum.novit.ro'] # list of default servers
self.host = random.choice( self.default_servers ) # random choice when the wallet is created
self.servers = [] # actual list from IRC
self.servers = self.default_servers # actual list from IRC
self.rtime = 0
self.blocks = 0
self.message = ''
@ -197,4 +197,6 @@ class Interface:
def start(self, wallet):
thread.start_new_thread(self.update_wallet_thread, (wallet,))
def get_servers(self):
thread.start_new_thread(self.update_servers_thread, ())

2
client/version.py

@ -1,2 +1,2 @@
ELECTRUM_VERSION = "0.39"
ELECTRUM_VERSION = "0.39b"
SEED_VERSION = 4 # bump this everytime the seed generation is modified

Loading…
Cancel
Save