aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-05-28 23:14:37 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-05-28 23:14:37 +0100
commitd09be116c625a372e5b318f6dfb017ed358adc54 (patch)
tree0dd06fe4fbab752afc3c62fd2672d8d8d3836b02 /src
parentcore_rpc_server: log some error messages to the console (diff)
downloadmonero-d09be116c625a372e5b318f6dfb017ed358adc54.tar.xz
core_rpc_server: add a getter for the testnet flag
Diffstat (limited to 'src')
-rw-r--r--src/rpc/core_rpc_server.h1
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