aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-11-28 10:56:11 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-11-28 10:57:14 +0100
commitf86a24b368cf4e133add769966c7652ec3b63a75 (patch)
tree8d10c9dff88dd38fa30033bc5fb83fd2a81e5df6
parentbd9aebf19d6714552fe9f23bce97159d90d63e5b (diff)
Move `setmocktime` to hidden category
Another testing-only potential footgun command.
-rw-r--r--src/rpcserver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp
index ac0df5fa3b..8512212185 100644
--- a/src/rpcserver.cpp
+++ b/src/rpcserver.cpp
@@ -246,7 +246,6 @@ static const CRPCCommand vRPCCommands[] =
{ "control", "getinfo", &getinfo, true, false, false }, /* uses wallet if enabled */
{ "control", "help", &help, true, true, false },
{ "control", "stop", &stop, true, true, false },
- { "control", "setmocktime", &setmocktime, true, false, false },
/* P2P networking */
{ "network", "getnetworkinfo", &getnetworkinfo, true, false, false },
@@ -303,6 +302,7 @@ static const CRPCCommand vRPCCommands[] =
/* Not shown in help */
{ "hidden", "invalidateblock", &invalidateblock, true, true, false },
{ "hidden", "reconsiderblock", &reconsiderblock, true, true, false },
+ { "hidden", "setmocktime", &setmocktime, true, false, false },
#ifdef ENABLE_WALLET
/* Wallet */