Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/rpcnestedtests.cpp
Show All 23 Lines | |||||
static UniValue rpcNestedTest_rpc(const Config &config, | static UniValue rpcNestedTest_rpc(const Config &config, | ||||
const JSONRPCRequest &request) { | const JSONRPCRequest &request) { | ||||
if (request.fHelp) { | if (request.fHelp) { | ||||
return "help message"; | return "help message"; | ||||
} | } | ||||
return request.params.write(0, 0); | return request.params.write(0, 0); | ||||
} | } | ||||
static const ContextFreeRPCCommand vRPCCommands[] = { | static const CRPCCommand vRPCCommands[] = { | ||||
{"test", "rpcNestedTest", &rpcNestedTest_rpc, {}}, | {"test", "rpcNestedTest", &rpcNestedTest_rpc, {}}, | ||||
}; | }; | ||||
void RPCNestedTests::rpcNestedTests() { | void RPCNestedTests::rpcNestedTests() { | ||||
// do some test setup | // do some test setup | ||||
// could be moved to a more generic place when we add more tests on QT level | // could be moved to a more generic place when we add more tests on QT level | ||||
tableRPC.appendCommand("rpcNestedTest", &vRPCCommands[0]); | tableRPC.appendCommand("rpcNestedTest", &vRPCCommands[0]); | ||||
// mempool.setSanityCheck(1.0); | // mempool.setSanityCheck(1.0); | ||||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |