changeset 251:e07f6a800185 draft

change switch name to -disablesafemode
author Satoshi Nakamoto <satoshin@gmx.com>
date Sat, 28 Aug 2010 00:55:19 +0000
parents 8c9f73243ec7
children 1d2c671d0451
files rpc.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rpc.cpp
+++ b/rpc.cpp
@@ -995,8 +995,8 @@
 
                 // 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);