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

Method test_addBlock

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

Source from the content-addressed store, hash-verified

77}
78
79bool Test::test_addBlock(std::string const& _rlp)
80{
81 try
82 {
83 asClientTest(m_eth).addBlock(_rlp);
84 }
85 catch (std::exception const&)
86 {
87 BOOST_THROW_EXCEPTION(JsonRpcException(Errors::ERROR_RPC_INTERNAL_ERROR));
88 }
89 return true;
90}
91
92bool Test::test_rewindToBlock(int _number)
93{

Callers 1

test_addBlockIMethod · 0.80

Calls 1

addBlockMethod · 0.45

Tested by

no test coverage detected