forked from lthn/blockchain
core: fixed uninitialized variable in construct_miner_tx
This commit is contained in:
parent
5db4024be9
commit
69143d8288
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue