Merge pull request #2348 from freewil/crpccommand-table

make vRPCCommands comment match property names
This commit is contained in:
Gavin Andresen 2013-03-11 16:07:43 -07:00
commit bd80c66ac0
2 changed files with 66 additions and 66 deletions

View file

@ -194,8 +194,8 @@ Value stop(const Array& params, bool fHelp)
static const CRPCCommand vRPCCommands[] =
{ // name function safemd unlocked
// ------------------------ ----------------------- ------ --------
{ // name actor (function) okSafeMode threadSafe
// ------------------------ ----------------------- ---------- ----------
{ "help", &help, true, true },
{ "stop", &stop, true, true },
{ "getblockcount", &getblockcount, true, false },
@ -1072,7 +1072,7 @@ json_spirit::Value CRPCTable::execute(const std::string &strMethod, const json_s
// Execute
Value result;
{
if (pcmd->unlocked)
if (pcmd->threadSafe)
result = pcmd->actor(params, false);
else {
LOCK2(cs_main, pwalletMain->cs_wallet);

View file

@ -95,7 +95,7 @@ public:
std::string name;
rpcfn_type actor;
bool okSafeMode;
bool unlocked;
bool threadSafe;
};
/**