aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/rpc_command_executor.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-26 10:17:48 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-26 10:17:48 +0000
commit06c65cb0ef5b93c5d78ac3235e9e5f51952db070 (patch)
tree4c56ae6cb23abc1b501d6db5d360e279d2c3c449 /src/daemon/rpc_command_executor.cpp
parentrpc: fix a few commands not working as command line (diff)
downloadmonero-06c65cb0ef5b93c5d78ac3235e9e5f51952db070.tar.xz
rpc: fix hard_fork_info RPC
I had never tested it, obviously
Diffstat (limited to '')
-rw-r--r--src/daemon/rpc_command_executor.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp
index 38d20ec39..8e0347279 100644
--- a/src/daemon/rpc_command_executor.cpp
+++ b/src/daemon/rpc_command_executor.cpp
@@ -971,11 +971,13 @@ bool t_rpc_command_executor::hard_fork_info(uint8_t version)
tools::fail_msg_writer() << fail_message.c_str();
return true;
}
- version = version > 0 ? version : res.voting;
- tools::msg_writer() << "version " << (uint32_t)version << " " << (res.enabled ? "enabled" : "not enabled") <<
- ", " << res.votes << "/" << res.window << " votes, threshold " << res.threshold;
- tools::msg_writer() << "current version " << (uint32_t)res.version << ", voting for version " << (uint32_t)res.voting;
}
+
+ version = version > 0 ? version : res.voting;
+ tools::msg_writer() << "version " << (uint32_t)version << " " << (res.enabled ? "enabled" : "not enabled") <<
+ ", " << res.votes << "/" << res.window << " votes, threshold " << res.threshold;
+ tools::msg_writer() << "current version " << (uint32_t)res.version << ", voting for version " << (uint32_t)res.voting;
+
return true;
}