From d09be116c625a372e5b318f6dfb017ed358adc54 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 28 May 2015 23:14:37 +0100 Subject: core_rpc_server: add a getter for the testnet flag --- src/rpc/core_rpc_server.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rpc/core_rpc_server.h b/src/rpc/core_rpc_server.h index cee8df25d..6152dea03 100644 --- a/src/rpc/core_rpc_server.h +++ b/src/rpc/core_rpc_server.h @@ -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 -- cgit v1.2.3