diff options
| author | Satoshi Nakamoto <[email protected]> | 2010-08-28 00:55:19 +0000 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2010-08-28 00:55:19 +0000 |
| commit | d3631907d62f605b725b4cc433173cec15c9d082 (patch) | |
| tree | f55eedca3f87db96b2211b7d3ea6f65bca042807 | |
| parent | more rpc methods allowed in safe mode (diff) | |
| download | discoin-d3631907d62f605b725b4cc433173cec15c9d082.tar.xz discoin-d3631907d62f605b725b4cc433173cec15c9d082.zip | |
change switch name to -disablesafemode
| -rw-r--r-- | rpc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |