moar bug fixes, removed debug prints

This commit is contained in:
Thomas Winget
2014-10-30 14:57:39 -04:00
committed by warptangent
parent 0915913111
commit 71b18d7166
2 changed files with 4 additions and 8 deletions

View File

@@ -623,11 +623,10 @@ difficulty_type Blockchain::get_difficulty_for_next_block()
size_t offset = h - std::min(h, static_cast<size_t>(DIFFICULTY_BLOCKS_COUNT));
// because BlockchainDB::height() returns the index of the top block, the
// first index we need to get needs to be one
// higher than height() - DIFFICULTY_BLOCKS_COUNT. This also conveniently
// makes sure we don't use the genesis block.
++offset;
if (offset == 0)
{
++offset;
}
for(; offset < h; offset++)
{