change switch name to -disablesafemode

This commit is contained in:
Satoshi Nakamoto 2010-08-28 00:55:19 +00:00 committed by Gavin Andresen
parent 87cfcfd374
commit d3631907d6

View file

@ -995,8 +995,8 @@ void ThreadRPCServer2(void* parg)
// Observe safe mode // Observe safe mode
string strWarning = GetWarnings("rpc"); string strWarning = GetWarnings("rpc");
if (strWarning != "" && !mapArgs.count("-overridesafety") && !setAllowInSafeMode.count(strMethod)) if (strWarning != "" && !mapArgs.count("-disablesafemode") && !setAllowInSafeMode.count(strMethod))
throw runtime_error(strWarning); throw runtime_error(string("Safe mode: ") + strWarning);
// Execute // Execute
map<string, rpcfn_type>::iterator mi = mapCallTable.find(strMethod); map<string, rpcfn_type>::iterator mi = mapCallTable.find(strMethod);