structInterfaceNotSupported:virtualException{public:InterfaceNotSupported(std::string_f):m_f("Interface "+_f+" not supported."){}virtualconstchar*what()constnoexcept{returnm_f.c_str();}private:std::stringm_f;};
structInterfaceNotSupported:virtualException{public:InterfaceNotSupported(std::string_f):m_f("Interface "+_f+" not supported."){}virtualconstchar*what()constnoexcept{returnm_f.c_str();}private:std::stringm_f;};
h256root()const{assert(node(m_root).size());/*std::cout << "Returning root as " << ret << " (really " << m_root << ")" << std::endl;*/returnm_root;}// patch the root in the case of the empty trie. TODO: handle this properly.
h256root()const{if(!node(m_root).size())BOOST_THROW_EXCEPTION(BadRoot());/*std::cout << "Returning root as " << ret << " (really " << m_root << ")" << std::endl;*/returnm_root;}// patch the root in the case of the empty trie. TODO: handle this properly.