1
0

fix servers list

This commit is contained in:
ThomasV
2012-03-31 14:20:25 +02:00
parent a579e1555e
commit d1a5fa5b97
4 changed files with 7 additions and 10 deletions

View File

@@ -277,16 +277,10 @@ class Wallet:
#
self.addresses_waiting_for_status = []
self.addresses_waiting_for_history = []
self.pick_random_server()
self.server = random.choice( DEFAULT_SERVERS ) # random choice when the wallet is created
def pick_random_server(self):
host, pp = random.choice( DEFAULT_SERVERS ) # random choice when the wallet is created
protocol, port = pp[0]
self.server = host + ':' + port + ':' + protocol
def is_up_to_date(self):
return self.interface.responses.empty() and not ( self.addresses_waiting_for_status or self.addresses_waiting_for_history )