aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/cryptonote_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.h')
-rw-r--r--src/cryptonote_core/cryptonote_core.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_core.h b/src/cryptonote_core/cryptonote_core.h
index 905e67f6d..6cb4fc938 100644
--- a/src/cryptonote_core/cryptonote_core.h
+++ b/src/cryptonote_core/cryptonote_core.h
@@ -62,6 +62,7 @@ namespace cryptonote
extern const command_line::arg_descriptor<std::string> arg_data_dir;
extern const command_line::arg_descriptor<std::string> arg_testnet_data_dir;
extern const command_line::arg_descriptor<bool, false> arg_testnet_on;
+ extern const command_line::arg_descriptor<bool> arg_offline;
/************************************************************************/
/* */
@@ -773,6 +774,13 @@ namespace cryptonote
*/
uint64_t get_free_space() const;
+ /**
+ * @brief get whether the core is running offline
+ *
+ * @return whether the core is running offline
+ */
+ bool offline() const { return m_offline; }
+
private:
/**
@@ -1000,6 +1008,7 @@ namespace cryptonote
boost::mutex m_update_mutex;
bool m_fluffy_blocks_enabled;
+ bool m_offline;
};
}