From 4fea1a5fe7de41ebf0fb40be856d8a3f1775e7c6 Mon Sep 17 00:00:00 2001 From: Javier Smooth Date: Thu, 5 Nov 2015 01:58:47 -0800 Subject: Adjust difficulty target (2 min) and full reward zone (60 kbytes) for block version 2 --- tests/core_tests/chaingen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/core_tests/chaingen.cpp') diff --git a/tests/core_tests/chaingen.cpp b/tests/core_tests/chaingen.cpp index 9e7576c12..b430a1682 100644 --- a/tests/core_tests/chaingen.cpp +++ b/tests/core_tests/chaingen.cpp @@ -98,7 +98,7 @@ void test_generator::add_block(const cryptonote::block& blk, size_t tsx_size, st { const size_t block_size = tsx_size + get_object_blobsize(blk.miner_tx); uint64_t block_reward; - get_block_reward(misc_utils::median(block_sizes), block_size, already_generated_coins, block_reward); + get_block_reward(misc_utils::median(block_sizes), block_size, already_generated_coins, block_reward, 1); m_blocks_info[get_block_hash(blk)] = block_info(blk.prev_id, already_generated_coins + block_reward, block_size); } @@ -526,7 +526,7 @@ bool construct_miner_tx_manually(size_t height, uint64_t already_generated_coins // This will work, until size of constructed block is less then CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE uint64_t block_reward; - if (!get_block_reward(0, 0, already_generated_coins, block_reward)) + if (!get_block_reward(0, 0, already_generated_coins, block_reward, 1)) { LOG_PRINT_L0("Block is too big"); return false; -- cgit v1.2.3