core_rpc_server: add a getter for the testnet flag

This commit is contained in:
moneromooo-monero 2015-05-28 23:14:37 +01:00
parent 754f863a7e
commit d09be116c6
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ namespace cryptonote
bool init(
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