Browse Source

change switch name to -disablesafemode

0.8
Satoshi Nakamoto 14 years ago committed by Gavin Andresen
parent
commit
d3631907d6
  1. 4
      rpc.cpp

4
rpc.cpp

@ -995,8 +995,8 @@ void ThreadRPCServer2(void* parg) @@ -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…
Cancel
Save