Fix uncle inclusion reward

This commit is contained in:
nicksavers 2014-10-07 16:52:27 +02:00
parent 040455d868
commit 50f6a21ba8
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ public class BlockchainImpl implements Blockchain {
for (BlockHeader uncle : block.getUncleList()) {
repository.addBalance(uncle.getCoinbase(), Block.UNCLE_REWARD);
}
totalBlockReward.add(Block.INCLUSION_REWARD
totalBlockReward = totalBlockReward.add(Block.INCLUSION_REWARD
.multiply(BigInteger.valueOf(block.getUncleList().size())));
}
repository.addBalance(block.getCoinbase(), totalBlockReward);