diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-05-28 23:14:37 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-05-28 23:14:37 +0100 |
commit | d09be116c625a372e5b318f6dfb017ed358adc54 (patch) | |
tree | 0dd06fe4fbab752afc3c62fd2672d8d8d3836b02 /src/rpc/core_rpc_server.h | |
parent | core_rpc_server: log some error messages to the console (diff) | |
download | monero-d09be116c625a372e5b318f6dfb017ed358adc54.tar.xz |
core_rpc_server: add a getter for the testnet flag
Diffstat (limited to 'src/rpc/core_rpc_server.h')
-rw-r--r-- | src/rpc/core_rpc_server.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 |