From: ThomasV Date: Mon, 27 Jan 2014 09:06:49 +0000 (+0100) Subject: store merkle roots and utxo roots X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=d15c4f10467776e1f002670310d86c0eeaca7b23;p=electrum-nvc.git store merkle roots and utxo roots --- diff --git a/lib/network.py b/lib/network.py index ae9549d..d83b00d 100644 --- a/lib/network.py +++ b/lib/network.py @@ -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))