Merge #10749: Use compile-time constants instead of unnamed enumerations (remove...
[bitcoinplatinum.git] / src / rpc / safemode.cpp
blob24770ad47f073859d31167985f2ed2916f4dcb3e
1 #include "safemode.h"
3 #include "rpc/protocol.h"
4 #include "util.h"
5 #include "warnings.h"
7 void ObserveSafeMode()
9 std::string warning = GetWarnings("rpc");
10 if (warning != "" && !gArgs.GetBoolArg("-disablesafemode", DEFAULT_DISABLE_SAFEMODE)) {
11 throw JSONRPCError(RPC_FORBIDDEN_BY_SAFE_MODE, std::string("Safe mode: ") + warning);