Skip to content

Commit f86a24b

Browse files
committed
Move setmocktime to hidden category
Another testing-only potential footgun command.
1 parent bd9aebf commit f86a24b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpcserver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ static const CRPCCommand vRPCCommands[] =
246246
{ "control", "getinfo", &getinfo, true, false, false }, /* uses wallet if enabled */
247247
{ "control", "help", &help, true, true, false },
248248
{ "control", "stop", &stop, true, true, false },
249-
{ "control", "setmocktime", &setmocktime, true, false, false },
250249

251250
/* P2P networking */
252251
{ "network", "getnetworkinfo", &getnetworkinfo, true, false, false },
@@ -303,6 +302,7 @@ static const CRPCCommand vRPCCommands[] =
303302
/* Not shown in help */
304303
{ "hidden", "invalidateblock", &invalidateblock, true, true, false },
305304
{ "hidden", "reconsiderblock", &reconsiderblock, true, true, false },
305+
{ "hidden", "setmocktime", &setmocktime, true, false, false },
306306

307307
#ifdef ENABLE_WALLET
308308
/* Wallet */

0 commit comments

Comments
 (0)