mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
change switch name to -disablesafemode
This commit is contained in:
parent
87cfcfd374
commit
d3631907d6
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 New Issue
Block a user