diff options
author | Thomas Winget <tewinget@gmail.com> | 2017-04-06 15:01:07 -0400 |
---|---|---|
committer | Thomas Winget <tewinget@gmail.com> | 2017-08-31 07:48:27 -0400 |
commit | 9ac2ad0744e01d7bc7d729635d21b15db5038dba (patch) | |
tree | 756fba6709053e00e2393d3fdbaa3c58ee9fb145 /src/rpc | |
parent | Merge pull request #2349 (diff) | |
download | monero-9ac2ad0744e01d7bc7d729635d21b15db5038dba.tar.xz |
DRY refactoring
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index a6a61705b..1f7f4a1ff 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -137,7 +137,7 @@ namespace cryptonote res.top_block_hash = string_tools::pod_to_hex(top_hash); res.target_height = m_core.get_target_blockchain_height(); res.difficulty = m_core.get_blockchain_storage().get_difficulty_for_next_block(); - res.target = m_core.get_blockchain_storage().get_current_hard_fork_version() < 2 ? DIFFICULTY_TARGET_V1 : DIFFICULTY_TARGET_V2; + res.target = m_core.get_blockchain_storage().get_difficulty_target(); res.tx_count = m_core.get_blockchain_storage().get_total_transactions() - res.height; //without coinbase res.tx_pool_size = m_core.get_pool_transactions_count(); res.alt_blocks_count = m_core.get_blockchain_storage().get_alternative_blocks_count(); |