net_node: add a --offline argument

It will not try to connect to the monero network, nor listen
This commit is contained in:
moneromooo-monero
2015-12-07 20:21:45 +00:00
parent 0252ffc37b
commit 2c83055597
2 changed files with 12 additions and 0 deletions
+2
View File
@@ -88,6 +88,7 @@ namespace nodetool
m_allow_local_ip(false),
m_hide_my_port(false),
m_no_igd(false),
m_offline(false),
m_save_graph(false),
is_closing(false),
m_net_server( epee::net_utils::e_connection_type_P2P ) // this is a P2P connection of the main p2p node server, because this is class node_server<>
@@ -266,6 +267,7 @@ namespace nodetool
bool m_allow_local_ip;
bool m_hide_my_port;
bool m_no_igd;
bool m_offline;
std::atomic<bool> m_save_graph;
std::atomic<bool> is_closing;
std::unique_ptr<std::thread> mPeersLoggerThread;