aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpc/server.cpp')
-rw-r--r--src/rpc/server.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp
index 26e7297f3..303806b99 100644
--- a/src/rpc/server.cpp
+++ b/src/rpc/server.cpp
@@ -15,7 +15,7 @@
#include <univalue.h>
-#include <boost/bind.hpp>
+#include <boost/bind/bind.hpp>
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>
#include <boost/shared_ptr.hpp>
@@ -58,12 +58,12 @@ void RPCServer::OnStopped(boost::function<void ()> slot)
void RPCServer::OnPreCommand(boost::function<void (const CRPCCommand&)> slot)
{
- g_rpcSignals.PreCommand.connect(boost::bind(slot, _1));
+ g_rpcSignals.PreCommand.connect(boost::bind(slot, boost::placeholders::_1));
}
void RPCServer::OnPostCommand(boost::function<void (const CRPCCommand&)> slot)
{
- g_rpcSignals.PostCommand.connect(boost::bind(slot, _1));
+ g_rpcSignals.PostCommand.connect(boost::bind(slot, boost::placeholders::_1));
}
void RPCTypeCheck(const UniValue& params,
@@ -270,11 +270,11 @@ UniValue stop(const JSONRPCRequest& jsonRequest)
if (jsonRequest.fHelp || jsonRequest.params.size() > 1)
throw runtime_error(
"stop\n"
- "\nStop Bitcoin server.");
+ "\nStop Dogecoin server.");
// Event loop will exit after current HTTP requests have been handled, so
// this reply will get back to the client.
StartShutdown();
- return "Bitcoin server stopping";
+ return "Dogecoin server stopping";
}
/**
@@ -516,13 +516,14 @@ std::vector<std::string> CRPCTable::listCommands() const
std::transform( mapCommands.begin(), mapCommands.end(),
std::back_inserter(commandList),
- boost::bind(&commandMap::value_type::first,_1) );
+ boost::bind(&commandMap::value_type::first,
+ boost::placeholders::_1) );
return commandList;
}
std::string HelpExampleCli(const std::string& methodname, const std::string& args)
{
- return "> bitcoin-cli " + methodname + " " + args + "\n";
+ return "> dogecoin-cli " + methodname + " " + args + "\n";
}
std::string HelpExampleRpc(const std::string& methodname, const std::string& args)