change switch name to -disablesafemode
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@144 1a98c847-1fd6-4fd8-948a-caf3550aa51b
This commit is contained in:
parent
7d7797b141
commit
2ef9cfa5b8
1 changed files with 2 additions and 2 deletions
4
rpc.cpp
4
rpc.cpp
|
@ -995,8 +995,8 @@ void ThreadRPCServer2(void* parg)
|
|||
|
||||
// Observe safe mode
|
||||
string strWarning = GetWarnings("rpc");
|
||||
if (strWarning != "" && !mapArgs.count("-overridesafety") && !setAllowInSafeMode.count(strMethod))
|
||||
throw runtime_error(strWarning);
|
||||
if (strWarning != "" && !mapArgs.count("-disablesafemode") && !setAllowInSafeMode.count(strMethod))
|
||||
throw runtime_error(string("Safe mode: ") + strWarning);
|
||||
|
||||
// Execute
|
||||
map<string, rpcfn_type>::iterator mi = mapCallTable.find(strMethod);
|
||||
|
|
Loading…
Reference in a new issue