Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/blockchain.cpp
Show First 20 Lines • Show All 2,978 Lines • ▼ Show 20 Lines | static const CRPCCommand commands[] = { | ||||
{ "hidden", "syncwithvalidationinterfacequeue", syncwithvalidationinterfacequeue, {} }, | { "hidden", "syncwithvalidationinterfacequeue", syncwithvalidationinterfacequeue, {} }, | ||||
{ "hidden", "dumptxoutset", dumptxoutset, {"path"} }, | { "hidden", "dumptxoutset", dumptxoutset, {"path"} }, | ||||
{ "hidden", "unparkblock", unparkblock, {"blockhash"} }, | { "hidden", "unparkblock", unparkblock, {"blockhash"} }, | ||||
{ "hidden", "waitfornewblock", waitfornewblock, {"timeout"} }, | { "hidden", "waitfornewblock", waitfornewblock, {"timeout"} }, | ||||
{ "hidden", "waitforblock", waitforblock, {"blockhash","timeout"} }, | { "hidden", "waitforblock", waitforblock, {"blockhash","timeout"} }, | ||||
{ "hidden", "waitforblockheight", waitforblockheight, {"height","timeout"} }, | { "hidden", "waitforblockheight", waitforblockheight, {"height","timeout"} }, | ||||
}; | }; | ||||
// clang-format on | // clang-format on | ||||
for (const auto &c : commands) { | |||||
for (unsigned int vcidx = 0; vcidx < ARRAYLEN(commands); vcidx++) { | t.appendCommand(c.name, &c); | ||||
t.appendCommand(commands[vcidx].name, &commands[vcidx]); | |||||
} | } | ||||
} | } |