Ejemplo n.º 1
0
 def chain_head_state_root(self):
     """
     Return the state hash of the head block of the current chain.
     FIXME - for DAG use real merkle root state
     """
     chain_head = self.chain_head
     if chain_head is not None:
         return MerkleDatabase.get_real_merkle_root(self._global_state_db)
         #return chain_head.state_root_hash
     return INIT_ROOT_KEY
Ejemplo n.º 2
0
 def get_merkle_root():
     return MerkleDatabase.get_real_merkle_root(self._database)