mirror of
https://github.com/monero-project/monero.git
synced 2026-01-22 12:24:30 +01:00
core_rpc_server: add a getter for the testnet flag
This commit is contained in:
@@ -67,6 +67,7 @@ namespace cryptonote
|
|||||||
bool init(
|
bool init(
|
||||||
const boost::program_options::variables_map& vm
|
const boost::program_options::variables_map& vm
|
||||||
);
|
);
|
||||||
|
bool is_testnet() const { return m_testnet; }
|
||||||
|
|
||||||
CHAIN_HTTP_TO_MAP2(connection_context); //forward http requests to uri map
|
CHAIN_HTTP_TO_MAP2(connection_context); //forward http requests to uri map
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user