notify wallet wheit height changes
authorThomasV <thomasv@gitorious>
Thu, 5 Sep 2013 05:48:48 +0000 (07:48 +0200)
committerThomasV <thomasv@gitorious>
Thu, 5 Sep 2013 05:48:48 +0000 (07:48 +0200)
lib/blockchain.py

index ffa0623..310da9f 100644 (file)
@@ -403,10 +403,9 @@ class BlockchainVerifier(threading.Thread):
 
             if height > self.local_height + 50:
                 self.get_chunks(i, header, height)
-
+                self.interface.trigger_callback('updated')
 
             if height > self.local_height:
-
                 # get missing parts from interface (until it connects to my chain)
                 chain = self.get_chain( i, header )
 
@@ -423,6 +422,7 @@ class BlockchainVerifier(threading.Thread):
                     print_error("error", i.server)
                     # todo: dismiss that server
 
+                self.interface.trigger_callback('updated')