Merge #11683: tests: Remove unused mininode functions {ser,deser}_int_vector(......
[bitcoinplatinum.git] / src / rpc / safemode.cpp
blob9f3a9d30b8533a7ee58b9cc87f3b22671def247c
1 #include <rpc/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);