aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/safemode.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2017-06-08 17:38:23 -0700
committerWladimir J. van der Laan <laanwj@gmail.com>2017-08-29 10:09:41 +0200
commitec6902d0ea2bbe75179684fc71849d5e34647a14 (patch)
tree42393f7b18521829584072668b2f2e1c1c069e00 /src/rpc/safemode.h
parentcee4fe1d53b2e1ff91ff48bc881cb41dfba01c52 (diff)
rpc: Push down safe mode checks
This contains most of the changes of 10563 "remove safe mode", but doesn't remove the safe mode yet, but put an `ObserveSafeMode()` check in individual calls with okSafeMode=false. This cleans up the ugly "okSafeMode" flag from the dispatch tables, which is not a concern for the RPC server. Extra-author: Wladimir J. van der Laan <laanwj@gmail.com>
Diffstat (limited to 'src/rpc/safemode.h')
-rw-r--r--src/rpc/safemode.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/rpc/safemode.h b/src/rpc/safemode.h
new file mode 100644
index 0000000000..8466d6b2f9
--- /dev/null
+++ b/src/rpc/safemode.h
@@ -0,0 +1,12 @@
+// Copyright (c) 2017 The Bitcoin Core developers
+// Distributed under the MIT software license, see the accompanying
+// file COPYING or http://www.opensource.org/licenses/mit-license.php.
+
+#ifndef BITCOIN_RPC_SAFEMODE_H
+#define BITCOIN_RPC_SAFEMODE_H
+
+static const bool DEFAULT_DISABLE_SAFEMODE = true;
+
+void ObserveSafeMode();
+
+#endif // BITCOIN_RPC_SAFEMODE_H