compute and send utxo_root with header
[electrum-server.git] / backends / bitcoind / blockchain_processor.py
index 09644b9..18117fa 100644 (file)
@@ -661,8 +661,8 @@ class BlockchainProcessor(Processor):
                     prev_root_hash = None
 
 
-
         self.header = self.block2header(self.bitcoind('getblock', [self.storage.last_hash]))
+        self.header['utxo_root'] = self.storage.get_root_hash().encode('hex')
 
         if self.shared.stopped(): 
             print_log( "closing database" )