mining bug fixed

This commit is contained in:
thankful_for_today
2014-04-20 00:53:40 +04:00
parent 6d2bcc8ee9
commit 0fd82c910b
2 changed files with 15 additions and 48 deletions
+2 -2
View File
@@ -572,7 +572,7 @@ bool blockchain_storage::create_block_template(block& b, const account_public_ad
diffic = get_difficulty_for_next_block();
CHECK_AND_ASSERT_MES(diffic, false, "difficulty owverhead.");
median_size = m_current_block_cumul_sz_limit;
median_size = m_current_block_cumul_sz_limit / 2;
already_generated_coins = m_blocks.back().already_generated_coins;
CRITICAL_REGION_END();
@@ -1603,4 +1603,4 @@ bool blockchain_storage::add_new_block(const block& bl_, block_verification_cont
}
return handle_block_to_main_chain(bl, id, bvc);
}
}