3 #include "rpc/protocol.h"
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
);