mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-15 01:55:22 +01:00
remove CRPCCommand constructor that takes rpcfn_type function pointer
This commit is contained in:
@@ -14,14 +14,26 @@
|
||||
#include <QDir>
|
||||
#include <QtGlobal>
|
||||
|
||||
static UniValue rpcNestedTest_rpc(const JSONRPCRequest& request)
|
||||
static RPCHelpMan rpcNestedTest_rpc()
|
||||
{
|
||||
return request.params.write(0, 0);
|
||||
return RPCHelpMan{
|
||||
"rpcNestedTest",
|
||||
"echo the passed string(s)",
|
||||
{
|
||||
{"arg1", RPCArg::Type::STR, RPCArg::Optional::OMITTED, ""},
|
||||
{"arg2", RPCArg::Type::STR, RPCArg::Optional::OMITTED, ""},
|
||||
{"arg3", RPCArg::Type::STR, RPCArg::Optional::OMITTED, ""},
|
||||
},
|
||||
{},
|
||||
RPCExamples{""},
|
||||
[](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue {
|
||||
return request.params.write(0, 0);
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
static const CRPCCommand vRPCCommands[] =
|
||||
{
|
||||
{ "test", "rpcNestedTest", &rpcNestedTest_rpc, {} },
|
||||
static const CRPCCommand vRPCCommands[] = {
|
||||
{"test", "rpcNestedTest", &rpcNestedTest_rpc, {"arg1", "arg2", "arg3"}},
|
||||
};
|
||||
|
||||
void RPCNestedTests::rpcNestedTests()
|
||||
|
||||
Reference in New Issue
Block a user