1
0
Fork 0
forked from lthn/blockchain

core: fixed uninitialized variable in construct_miner_tx

This commit is contained in:
sowle 2019-11-20 10:25:45 +03:00
parent 5db4024be9
commit 69143d8288
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -87,7 +87,7 @@ namespace currency
bool pos,
const pos_entry& pe)
{
uint64_t block_reward;
uint64_t block_reward = 0;
if (!get_block_reward(pos, median_size, current_block_size, already_generated_coins, block_reward, height))
{
LOG_ERROR("Block is too big");