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
def get_merkle_root(): return MerkleDatabase.get_real_merkle_root(self._database)