aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoinrpc.cpp
diff options
context:
space:
mode:
authorfreewil <sean@eternalrise.com>2013-03-07 06:18:55 -0500
committerfreewil <sean@eternalrise.com>2013-03-07 06:18:55 -0500
commit10ef3611697cdf867730689f6968ba48adc4d6e2 (patch)
treedb46070378b72c9ef8f673a19cd690a94eebe0d1 /src/bitcoinrpc.cpp
parentdcf8b8fd9e9fc964eda083ee82e46df58958f705 (diff)
downloadbitcoin-10ef3611697cdf867730689f6968ba48adc4d6e2.tar.xz
CRPCCommand.unlocked -> CRPCCommand.threadSafe
unlocked could be confused with wallet encryption
Diffstat (limited to 'src/bitcoinrpc.cpp')
-rw-r--r--src/bitcoinrpc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp
index 31acbe7863..4a6cc42efc 100644
--- a/src/bitcoinrpc.cpp
+++ b/src/bitcoinrpc.cpp
@@ -194,8 +194,8 @@ Value stop(const Array& params, bool fHelp)
static const CRPCCommand vRPCCommands[] =
-{ // name actor (function) okSafeMode 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);