mining bug fixed
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user