aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoind.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-06-15 15:41:40 +0200
committerWladimir J. van der Laan <[email protected]>2014-06-15 15:43:47 +0200
commit0075337020d4cf8614c40b2c98c0bbef124bbc56 (patch)
treed0afe7a6b7f4a33be306f259af83fa871c29146b /src/bitcoind.cpp
parentbitcoin-cli, rpcclient: prefer EXIT_FAILURE cstdlib constant (diff)
parentRemove cli functionality from bitcoind (diff)
downloaddiscoin-0075337020d4cf8614c40b2c98c0bbef124bbc56.tar.xz
discoin-0075337020d4cf8614c40b2c98c0bbef124bbc56.zip
Merge pull request #4232
b750cf1 Remove cli functionality from bitcoind (Wladimir J. van der Laan)
Diffstat (limited to 'src/bitcoind.cpp')
-rw-r--r--src/bitcoind.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp
index b7d8ee7f9..880955481 100644
--- a/src/bitcoind.cpp
+++ b/src/bitcoind.cpp
@@ -4,7 +4,6 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcserver.h"
-#include "rpcclient.h"
#include "init.h"
#include "main.h"
#include "noui.h"
@@ -94,14 +93,9 @@ bool AppInit(int argc, char* argv[])
else
{
strUsage += "\n" + _("Usage:") + "\n" +
- " bitcoind [options] " + _("Start Bitcoin Core Daemon") + "\n" +
- _("Usage (deprecated, use bitcoin-cli):") + "\n" +
- " bitcoind [options] <command> [params] " + _("Send command to Bitcoin Core") + "\n" +
- " bitcoind [options] help " + _("List commands") + "\n" +
- " bitcoind [options] help <command> " + _("Get help for a command") + "\n";
+ " bitcoind [options] " + _("Start Bitcoin Core Daemon") + "\n";
strUsage += "\n" + HelpMessage(HMM_BITCOIND);
- strUsage += "\n" + HelpMessageCli(false);
}
fprintf(stdout, "%s", strUsage.c_str());
@@ -116,8 +110,8 @@ bool AppInit(int argc, char* argv[])
if (fCommandLine)
{
- int ret = CommandLineRPC(argc, argv);
- exit(ret);
+ fprintf(stderr, "Error: There is no RPC client functionality in bitcoind anymore. Use the bitcoin-cli utility instead.\n");
+ exit(1);
}
#ifndef WIN32
fDaemon = GetBoolArg("-daemon", false);