trigger synchronize when block height is received

This commit is contained in:
ThomasV 2013-01-30 07:38:13 +01:00
parent 2f6d919afc
commit 4dcac08ccf
1 changed files with 1 additions and 0 deletions

View File

@ -167,6 +167,7 @@ class WalletVerifier(threading.Thread):
requested_headers.remove(result.get('block_height'))
else:
self.height = result.get('block_height')
self.interface.poke('synchronizer')
self.pending_headers.sort(key=lambda x: x.get('block_height'))
# print "pending headers", map(lambda x: x.get('block_height'), self.pending_headers)