aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-08-12 19:19:25 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-08-12 20:32:23 +0100
commit7e4e0021f422eec55fb0417b1d6e86ceddc1934f (patch)
tree62d2516871b61424612f8b6f5bd5dc52d3345a42 /src/rpc
parentMerge pull request #955 (diff)
downloadmonero-7e4e0021f422eec55fb0417b1d6e86ceddc1934f.tar.xz
daemon: print time to next fork
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/core_rpc_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index 9cd1893cf..e6fc11060 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -1025,7 +1025,7 @@ namespace cryptonote
#if BLOCKCHAIN_DB == DB_LMDB
const Blockchain &blockchain = m_core.get_blockchain_storage();
- uint8_t version = req.version > 0 ? req.version : blockchain.get_ideal_hard_fork_version();
+ uint8_t version = req.version > 0 ? req.version : blockchain.get_next_hard_fork_version();
res.version = blockchain.get_current_hard_fork_version();
res.enabled = blockchain.get_hard_fork_voting_info(version, res.window, res.votes, res.threshold, res.earliest_height, res.voting);
res.state = blockchain.get_hard_fork_state();