Permalink
Browse files

Remove duplicate db height query

  • Loading branch information...
miltonf committed Dec 2, 2018
1 parent 47dbead commit 36ee34fa79c5fb4fbfa9e7083d1eab9b10d13aad
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/cryptonote_core/blockchain.cpp
@@ -2187,7 +2187,7 @@ bool Blockchain::find_blockchain_supplement(const std::list<crypto::hash>& qbloc

bool result = find_blockchain_supplement(qblock_ids, resp.m_block_ids, resp.start_height, resp.total_height);
if (result)
resp.cumulative_difficulty = m_db->get_block_cumulative_difficulty(m_db->height() - 1);
resp.cumulative_difficulty = m_db->get_block_cumulative_difficulty(resp.total_height - 1);

return result;
}

0 comments on commit 36ee34f

Please sign in to comment.