Skip to content

Commit

Permalink
Remove duplicate db height query
Browse files Browse the repository at this point in the history
  • Loading branch information
miltonf committed Dec 2, 2018
1 parent 47dbead commit 36ee34f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cryptonote_core/blockchain.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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); bool result = find_blockchain_supplement(qblock_ids, resp.m_block_ids, resp.start_height, resp.total_height);
if (result) 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; return result;
} }
Expand Down

0 comments on commit 36ee34f

Please sign in to comment.