aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_parser_executor.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-12-17 11:25:15 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-12-17 11:28:49 +0000
commit55fa0479a0db599d81500e57e355124f1fb9c05e (patch)
treed394bf9b6ad9f8d8320cc3a34e860c7af5bc671c /src/daemon/command_parser_executor.cpp
parentMerge pull request #1459 (diff)
downloadmonero-55fa0479a0db599d81500e57e355124f1fb9c05e.tar.xz
rpc: new function and RPC to get alternative chain info
Diffstat (limited to '')
-rw-r--r--src/daemon/command_parser_executor.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/daemon/command_parser_executor.cpp b/src/daemon/command_parser_executor.cpp
index 88b77f76d..f07ef1616 100644
--- a/src/daemon/command_parser_executor.cpp
+++ b/src/daemon/command_parser_executor.cpp
@@ -482,4 +482,15 @@ bool t_command_parser_executor::print_coinbase_tx_sum(const std::vector<std::str
return m_executor.print_coinbase_tx_sum(height, count);
}
+bool t_command_parser_executor::alt_chain_info(const std::vector<std::string>& args)
+{
+ if(args.size())
+ {
+ std::cout << "No parameters allowed" << std::endl;
+ return false;
+ }
+
+ return m_executor.alt_chain_info();
+}
+
} // namespace daemonize