24 #include <jsonrpccpp/common/errors.h> 25 #include <jsonrpccpp/common/exception.h> 40 Json::FastWriter fastWriter;
41 std::string output = fastWriter.write(param1);
44 catch (std::exception
const&)
46 BOOST_THROW_EXCEPTION(JsonRpcException(Errors::ERROR_RPC_INTERNAL_ERROR));
58 catch (std::exception
const&)
60 BOOST_THROW_EXCEPTION(JsonRpcException(Errors::ERROR_RPC_INTERNAL_ERROR));
72 catch (std::exception
const&)
74 BOOST_THROW_EXCEPTION(JsonRpcException(Errors::ERROR_RPC_INTERNAL_ERROR));
85 catch (std::exception
const&)
87 BOOST_THROW_EXCEPTION(JsonRpcException(Errors::ERROR_RPC_INTERNAL_ERROR));
99 catch (std::exception
const&)
101 BOOST_THROW_EXCEPTION(JsonRpcException(Errors::ERROR_RPC_INTERNAL_ERROR));
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
void rewind(unsigned _n)
Rewind to a prior head.
virtual bool test_modifyTimestamp(int _timestamp) override
void modifyTimestamp(u256 const &_timestamp)
virtual bool test_rewindToBlock(int _number) override
bool addBlock(std::string const &_rlp)
std::hash for asio::adress
void mineBlocks(unsigned _count)
virtual bool test_addBlock(std::string const &_rlp) override
ClientTest & asClientTest(Interface &_c)
Main API hub for interfacing with Ethereum.
boost::multiprecision::number< boost::multiprecision::cpp_int_backend< 256, 256, boost::multiprecision::unsigned_magnitude, boost::multiprecision::unchecked, void >> u256
virtual bool test_mineBlocks(int _number) override
virtual bool test_setChainParams(const Json::Value ¶m1) override
void setChainParams(std::string const &_genesis)