Skip to content

Commit

Permalink
Merge pull request #9 from victor-tucci/minor-reward-bug-fix
Browse files Browse the repository at this point in the history
minor bug fix in minor_reward
  • Loading branch information
victor-tucci authored Jun 8, 2023
2 parents 5ae04ac + 1649a7f commit 28f2467
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rpc/core_rpc_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,8 @@ namespace cryptonote { namespace rpc {
response.cumulative_difficulty = m_core.get_blockchain_storage().get_db().get_block_cumulative_difficulty(height);
response.block_weight = m_core.get_blockchain_storage().get_db().get_block_weight(height);
response.reward = get_block_reward(blk);
response.miner_reward = blk.miner_tx.vout[0].amount;
if(blk.nonce != 0)
response.miner_reward = blk.miner_tx.vout[0].amount;
response.block_size = response.block_weight = m_core.get_blockchain_storage().get_db().get_block_weight(height);
response.num_txes = blk.tx_hashes.size();
if (fill_pow_hash)
Expand Down

0 comments on commit 28f2467

Please sign in to comment.