diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 88ae9d13..c5771882 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -616,7 +616,7 @@ difficulty_type Blockchain::get_difficulty_for_next_block() const std::vector cumulative_difficulties; auto h = m_db->height(); - size_t offset = h - std::min(h, static_cast(DIFFICULTY_BLOCKS_COUNT)); + size_t offset = h - std::min(h, static_cast(DIFFICULTY_BLOCKS_COUNT)); if (offset == 0) { @@ -892,7 +892,7 @@ void Blockchain::get_last_n_blocks_sizes(std::vector& sz, size_t count) return; // add size of last blocks to vector (or less, if blockchain size < count) - size_t start_offset = h - std::min(h, count); + size_t start_offset = h - std::min(h, count); for(size_t i = start_offset; i < h; i++) { sz.push_back(m_db->get_block_size(i));