voidsetRoot(h256_root){m_root=_root==h256()?c_shaNull:_root;/*std::cout << "Setting root to " << _root << " (patched to " << m_root << ")" << std::endl;*/assert(node(m_root).size());}
voidsetRoot(h256_root){m_root=_root==h256()?c_shaNull:_root;/*std::cout << "Setting root to " << _root << " (patched to " << m_root << ")" << std::endl;*/if(!node(m_root).size())throwRootNotFound();}
h256root()const{assert(node(m_root).size());h256ret=(m_root==c_shaNull?h256():m_root);/*std::cout << "Returning root as " << ret << " (really " << m_root << ")" << std::endl;*/returnret;}// patch the root in the case of the empty trie. TODO: handle this properly.