store merkle roots and utxo roots

This commit is contained in:
ThomasV 2014-01-27 10:06:49 +01:00
parent 7c6bc72cb4
commit d15c4f1046
1 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,8 @@ class Network(threading.Thread):
self.interface = None
self.proxy = self.config.get('proxy')
self.heights = {}
self.merkle_roots = {}
self.utxo_roots = {}
self.server_lag = 0
dir_path = os.path.join( self.config.path, 'certs')
@ -335,6 +337,8 @@ class Network(threading.Thread):
if not result: return
height = result.get('block_height')
self.heights[i.server] = height
self.merkle_roots[i.server] = result.get('merkle_root')
self.utxo_roots[i.server] = result.get('utxo_root')
# notify blockchain about the new height
self.blockchain.queue.put((i,result))