MCPcopy Create free account
hub / github.com/LUX-Core/lux / test_setChainParams

Method test_setChainParams

src/cpp-ethereum/libweb3jsonrpc/Test.cpp:36–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34Test::Test(eth::Client& _eth): m_eth(_eth) {}
35
36bool Test::test_setChainParams(Json::Value const& param1)
37{
38 try
39 {
40 Json::FastWriter fastWriter;
41 std::string output = fastWriter.write(param1);
42 asClientTest(m_eth).setChainParams(output);
43 }
44 catch (std::exception const&)
45 {
46 BOOST_THROW_EXCEPTION(JsonRpcException(Errors::ERROR_RPC_INTERNAL_ERROR));
47 }
48
49 return true;
50}
51
52bool Test::test_mineBlocks(int _number)
53{

Callers 1

test_setChainParamsIMethod · 0.80

Calls 2

writeMethod · 0.45
setChainParamsMethod · 0.45

Tested by

no test coverage detected