mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 06:55:50 +00:00
Merge branch 'master' into reserve
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <boost/thread.hpp>
|
||||
|
||||
#include "Log.h"
|
||||
#include "Config.h"
|
||||
|
||||
SETUP_LOG();
|
||||
|
||||
@@ -184,7 +185,9 @@ void JobQueue::shutdown()
|
||||
|
||||
void JobQueue::setThreadCount(int c)
|
||||
{ // set the number of thread serving the job queue to precisely this number
|
||||
if (c == 0)
|
||||
if (theConfig.RUN_STANDALONE)
|
||||
c = 1;
|
||||
else if (c == 0)
|
||||
{
|
||||
c = boost::thread::hardware_concurrency();
|
||||
if (c < 2)
|
||||
|
||||
@@ -2319,7 +2319,7 @@ Json::Value RPCHandler::doCommand(Json::Value& jvRequest, int iRole)
|
||||
{ "server_info", &RPCHandler::doServerInfo, true, false, optNone },
|
||||
{ "stop", &RPCHandler::doStop, true, false, optNone },
|
||||
{ "transaction_entry", &RPCHandler::doTransactionEntry, false, false, optCurrent },
|
||||
{ "tx", &RPCHandler::doTx, true, false, optNone },
|
||||
{ "tx", &RPCHandler::doTx, false, false, optNetwork },
|
||||
{ "tx_history", &RPCHandler::doTxHistory, false, false, optNone },
|
||||
|
||||
{ "unl_add", &RPCHandler::doUnlAdd, true, false, optNone },
|
||||
|
||||
Reference in New Issue
Block a user