1
0

move start_session into wallet methods. replace get_servers with network dialog

This commit is contained in:
thomasv
2012-05-02 14:21:58 +02:00
parent 6c55410820
commit 505c1a3887
3 changed files with 52 additions and 62 deletions

View File

@@ -947,4 +947,18 @@ class Wallet:
self.up_to_date_event.wait()
def start_session(self, interface):
self.interface = interface
with self.lock:
self.addresses_waiting_for_status = []
self.addresses_waiting_for_history = []
addresses = self.all_addresses()
for addr in addresses:
self.addresses_waiting_for_status.append(addr)
self.interface.send([('server.banner',[]), ('blockchain.numblocks.subscribe',[]), ('server.peers.subscribe',[])])
self.interface.subscribe(addresses)